InputMessageLocation.fromJson constructor

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

Parses a InputMessageLocation from TDLib JSON.

Implementation

factory InputMessageLocation.fromJson(Map<String, dynamic> json) =>
    InputMessageLocation(
      location: _readObject(json['location'], Location.fromJson),
      livePeriod: _readInt(json['live_period']),
      heading: _readInt(json['heading']),
      proximityAlertRadius: _readInt(json['proximity_alert_radius']),
    );