InputPaidMedia.fromJson constructor
Parses a InputPaidMedia from TDLib JSON.
Implementation
factory InputPaidMedia.fromJson(Map<String, dynamic> json) => InputPaidMedia(
type: _readObject(json['type'], InputPaidMediaType.fromJson),
media: _readObject(json['media'], InputFile.fromJson),
thumbnail: _readOptional(json['thumbnail'], InputThumbnail.fromJson),
addedStickerFileIds: _readList<int>(
json['added_sticker_file_ids'],
_readInt,
),
width: _readInt(json['width']),
height: _readInt(json['height']),
);