copyWith method
A copy with the given properties replaced; everything else, unknown keys included, is kept.
Implementation
UntitledSingleSelectEnumSchema copyWith({
String? defaultValue,
String? description,
List<String>? enumValue,
String? title,
}) =>
UntitledSingleSelectEnumSchema.fromJson({
...toJson(),
if (defaultValue != null) 'default': $encode(defaultValue),
if (description != null) 'description': $encode(description),
if (enumValue != null) 'enum': $encode(enumValue),
if (title != null) 'title': $encode(title),
});