toJson method

  1. @override
Object toJson()

Implementation

@override
Object toJson() {
  return {
    'title': label,
    'custom_id': customId,
    'components': components?.map((component) => component.toJson()).toList()
  };
}