MessageProximityAlertTriggered.fromJson constructor

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

Parse from a json

Implementation

factory MessageProximityAlertTriggered.fromJson(Map<String, dynamic> json) =>
    MessageProximityAlertTriggered(
      travelerId: MessageSender.fromJson(json['traveler_id']),
      watcherId: MessageSender.fromJson(json['watcher_id']),
      distance: json['distance'],
    );