toJson method

  1. @override
Object toJson()

Serialize this to json.

Implementation

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