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