IdentityDocument.fromJson constructor
Parses a IdentityDocument from TDLib JSON.
Implementation
factory IdentityDocument.fromJson(Map<String, dynamic> json) =>
IdentityDocument(
number: _readString(json['number']),
expirationDate: _readOptional(json['expiration_date'], Date.fromJson),
frontSide: _readObject(json['front_side'], DatedFile.fromJson),
reverseSide: _readOptional(json['reverse_side'], DatedFile.fromJson),
selfie: _readOptional(json['selfie'], DatedFile.fromJson),
translation: _readList<DatedFile>(
json['translation'], (e) => _readObject(e, DatedFile.fromJson)),
);