fromJson static method
Implementation
static InputSticker? fromJson(Map<String, dynamic>? json) {
if (json == null) {
return null;
}
return InputSticker(
sticker: InputFile.fromJson(tdMapFromJson(json['sticker'])),
thumbnail: InputThumbnail.fromJson(tdMapFromJson(json['thumbnail'])),
width: (json['width'] as int?) ?? 0,
height: (json['height'] as int?) ?? 0,
);
}