toJson method

Map<String, dynamic> toJson()

Converts a LocationChatMessage instance into a JSON object.

Implementation

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