toJson method

Map<String, dynamic> toJson()

Encode Emoji to json

Implementation

Map<String, dynamic> toJson() {
  return {
    'emoji': emoji,
    'name': name,
    'hasSkinTone': hasSkinTone,
  };
}