Photo.fromJson constructor
Parses a Photo from TDLib JSON.
Implementation
factory Photo.fromJson(Map<String, dynamic> json) => Photo(
hasStickers: _readBool(json['has_stickers']),
minithumbnail:
_readOptional(json['minithumbnail'], Minithumbnail.fromJson),
sizes: _readList<PhotoSize>(
json['sizes'], (e) => _readObject(e, PhotoSize.fromJson)),
);