toJson method

Map<String, dynamic> toJson()

Converts a LocationChatMessage instance to a JSON map.

Implementation

Map<String, dynamic> toJson() => {
      "latitude": latitude,
      "longitude": longitude,
      "mapLocationUrl": mapLocationUrl,
      "messageId": messageId,
    };