fromJson static method

TextEntityTypeCustomEmoji? fromJson(
  1. Map<String, dynamic>? json
)
override

Implementation

static TextEntityTypeCustomEmoji? fromJson(Map<String, dynamic>? json) {
  if (json == null) {
    return null;
  }

  return TextEntityTypeCustomEmoji(
    customEmojiId:
        int.tryParse(
          (json['custom_emoji_id'] as dynamic)?.toString() ?? '',
        ) ??
        0,
  );
}