toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  return {
    'label': label,
    'value': value,
    'description': description,
    if (emoji != null)
      'emoji': {
        'name': emoji?.name,
        'id': emoji?.id,
        'animated': emoji?.animated,
      },
    'default': isDefault,
  };
}