LocationChatMessage.fromJson constructor

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

Creates a LocationChatMessage instance from a JSON map.

Implementation

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