ChatLocationMessageBody.fromJson constructor

ChatLocationMessageBody.fromJson({
  1. required Map map,
})

Implementation

ChatLocationMessageBody.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"];
}