fromJson static method

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

Implementation

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

  return EmojiKeywords(
    emojiKeywords: List<EmojiKeyword>.from(
      tdListFromJson(json['emoji_keywords'])
          .map((item) => EmojiKeyword.fromJson(tdMapFromJson(item)))
          .whereType<EmojiKeyword>(),
    ),
  );
}