V2TimFileElem.fromJson constructor

V2TimFileElem.fromJson(
  1. Map json
)

Implementation

V2TimFileElem.fromJson(Map json) {
  elemType = MessageElemType.V2TIM_ELEM_TYPE_FILE;
  json = Utils.formatJson(json);
  path = json['file_elem_file_path'];
  UUID = json['file_elem_file_id'];
  fileName = json['file_elem_file_name'];
  fileSize = json['file_elem_file_size'];
  url = json['file_elem_url'];

  localUrl = getDefaultLocalUrl();
  if (json['nextElem'] != null) {
    nextElem = Utils.formatJson(json['nextElem']);
  }
}