toJson method

Map<String, dynamic> toJson()

Encode Emoji to json

Implementation

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