toJson method
Implementation
Map<String, Object?> toJson() => {
'field_types': fieldTypes.map((k, v) => MapEntry(k, v.toJson())),
'icon': icon,
'instances': instances.map((v) => v.toJson()).toList(),
'location_fields': locationFields.map((v) => v).toList(),
'user_fields': userFields.map((v) => v).toList(),
};