toJson method

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

Implementation

@override
Map<String, dynamic> toJson() {
  return {
    'custom_id': _customId,
    'title': _title,
    'components': _elements.map((e) => e.toJson()).toList(),
  };
}