fromJson static method
Inherited by: InputChatPhotoAnimation InputChatPhotoPrevious InputChatPhotoStatic InputChatPhotoSticker
Implementation
static InputChatPhoto? fromJson(Map<String, dynamic>? json) {
if (json == null) {
return null;
}
switch (json['@type']) {
case InputChatPhotoAnimation.constructor:
return InputChatPhotoAnimation.fromJson(json);
case InputChatPhotoPrevious.constructor:
return InputChatPhotoPrevious.fromJson(json);
case InputChatPhotoStatic.constructor:
return InputChatPhotoStatic.fromJson(json);
case InputChatPhotoSticker.constructor:
return InputChatPhotoSticker.fromJson(json);
default:
return null;
}
}