toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  return {
    'label': _label,
    'disabled': _disabled,
    if (_emoji != null)
      'emoji': {
        'name': _emoji?.name,
        'id': _emoji?.id,
        'animated': _emoji?.animated,
      },
  };
}