V2TimLocationElem.fromJson constructor

V2TimLocationElem.fromJson(
  1. Map json
)

Implementation

V2TimLocationElem.fromJson(Map json) {
  elemType = MessageElemType.V2TIM_ELEM_TYPE_LOCATION;
  json = Utils.formatJson(json);
  desc = json['location_elem_desc'];
  longitude = json['location_elem_longitude'] ?? 0.0;
  latitude = json['location_elem_latitude'] ?? 0.0;
  if (json['nextElem'] != null) {
    nextElem = Utils.formatJson(json['nextElem']);
  }
}