toJson method

  1. @override
Map<String, dynamic> toJson()

Implementation

@override
Map<String, dynamic> toJson() => {
  'type': type?.value,
  'custom_id': customId,
  'label': label,
  'style': style.value,
  'emoji': emoji?.emoji.toJson(),
  'disabled': disabled,
  'url': url,
};