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