fromJson static method
Inherited by: ReactionTypeCustomEmoji ReactionTypeEmoji ReactionTypePaid
Implementation
static ReactionTypeCustomEmoji? fromJson(Map<String, dynamic>? json) {
if (json == null) {
return null;
}
return ReactionTypeCustomEmoji(
customEmojiId: (json['custom_emoji_id'] is int
? json['custom_emoji_id'] as int
: int.tryParse(json['custom_emoji_id']?.toString() ?? '')) ??
0,
);
}