LocationChatMessage.fromJson constructor

LocationChatMessage.fromJson(
  1. Map<String, dynamic> json
)

Converts a JSON object into a LocationChatMessage instance.

Implementation

factory LocationChatMessage.fromJson(Map<String, dynamic> json) =>
    LocationChatMessage(
      latitude: json["latitude"]?.toDouble(),
      longitude: json["longitude"]?.toDouble(),
      mapLocationUrl: json["mapLocationUrl"],
      messageId: json["messageId"],
    );