fromJson static method
Inherited by: InputChatPhotoAnimation InputChatPhotoPrevious InputChatPhotoStatic InputChatPhotoSticker
Implementation
static InputChatPhotoPrevious? fromJson(Map<String, dynamic>? json) {
if (json == null) {
return null;
}
return InputChatPhotoPrevious(
chatPhotoId: (json['chat_photo_id'] is int
? json['chat_photo_id'] as int
: int.tryParse(json['chat_photo_id']?.toString() ?? '')) ??
0,
);
}