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