MessageLiveLocation.fromJson constructor

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

Parses a MessageLiveLocation from TDLib JSON.

Implementation

factory MessageLiveLocation.fromJson(Map<String, dynamic> json) =>
    MessageLiveLocation(
      location: _readObject(json['location'], LiveLocation.fromJson),
      expiresIn: _readInt(json['expires_in']),
    );