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['emoji'] as String,
    json['name'] as String,
    hasSkinTone:
        json['hasSkinTone'] != null ? json['hasSkinTone'] as bool : false,
  );
}