Address.fromJson constructor

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

Parses a Address from TDLib JSON.

Implementation

factory Address.fromJson(Map<String, dynamic> json) => Address(
  countryCode: _readString(json['country_code']),
  state: _readString(json['state']),
  city: _readString(json['city']),
  streetLine1: _readString(json['street_line1']),
  streetLine2: _readString(json['street_line2']),
  postalCode: _readString(json['postal_code']),
);