ChatEventLocationChanged.fromJson constructor

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

Parse from a json

Implementation

factory ChatEventLocationChanged.fromJson(Map<String, dynamic> json) =>
    ChatEventLocationChanged(
      oldLocation: json['old_location'] == null
          ? null
          : ChatLocation.fromJson(json['old_location']),
      newLocation: json['new_location'] == null
          ? null
          : ChatLocation.fromJson(json['new_location']),
    );