toMap method
Implementation
Map<String, Object> toMap() => <String, Object>{
'identifier': identifier,
'title': title,
'options': options
.map((e) => 1 << e.index) // ignore: always_specify_types
.toList(),
'type': describeEnum(type),
if (buttonTitle != null) 'buttonTitle': buttonTitle!,
if (placeholder != null) 'placeholder': placeholder!,
};