EMLocationMessageBody.fromJson constructor

EMLocationMessageBody.fromJson(
  1. {required Map map}
)

Implementation

EMLocationMessageBody.fromJson({required Map map})
    : super.fromJson(map: map, type: MessageType.LOCATION) {
  this.latitude = (map["latitude"] ?? 0).toDouble();
  this.longitude = (map["longitude"] ?? 0).toDouble();
  this._address = map["address"];
  this._buildingName = map["buildingName"];
}