InputChatPhoto.fromJson constructor
a InputChatPhoto return type can be :
Implementation
factory InputChatPhoto.fromJson(Map<String, dynamic> json) {
switch(json["@type"]) {
case InputChatPhotoPrevious.CONSTRUCTOR:
return InputChatPhotoPrevious.fromJson(json);
case InputChatPhotoStatic.CONSTRUCTOR:
return InputChatPhotoStatic.fromJson(json);
case InputChatPhotoAnimation.CONSTRUCTOR:
return InputChatPhotoAnimation.fromJson(json);
default:
return const InputChatPhoto();
}
}