fromJson static method

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

Creates a object from a json

Implementation

static ProximityAlertTriggered fromJson(Map<String, dynamic> json) {
  return ProximityAlertTriggered(
    traveler: User.fromJson(json['traveler']),
    watcher: User.fromJson(json['watcher']),
    distance: json['distance'],
  );
}