serialize property

Map<String, dynamic> get serialize

Implementation

Map<String, dynamic> get serialize => {
  'name': label.uid,
  'description': description.uid,
  'name_localizations': label.serialize,
  'description_localizations': description.serialize,
  'type': type.value,
  'required': required ?? false,
  'channel_types': channels?.map((channel) => channel.value).toList(),
  'choices': choices?.map((choice) => choice.serialize).toList(),
  'min_value': min,
  'max_value': max,
};