fromJson static method

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

Parse Emoji from json

Implementation

static Emoji fromJson(Map<String, dynamic> json) {
  return Emoji(
    json['name'] as String,
    json['emoji'] as String,
    hasSkinTone:
        json['hasSkinTone'] != null ? json['hasSkinTone'] as bool : false,
  );
}