ChatLocation.fromJson constructor

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

Parses a ChatLocation from TDLib JSON.

Implementation

factory ChatLocation.fromJson(Map<String, dynamic> json) => ChatLocation(
      location: _readObject(json['location'], Location.fromJson),
      address: _readString(json['address']),
    );