JSONSchema constructor
JSONSchema({
- String? ref,
- String? title,
- String? description,
- String? default_7,
- bool? readOnly,
- String? example,
- double? multipleOf,
- double? maximum,
- bool? exclusiveMaximum,
- double? minimum,
- bool? exclusiveMinimum,
- Int64? maxLength,
- Int64? minLength,
- String? pattern,
- Int64? maxItems,
- Int64? minItems,
- bool? uniqueItems,
- Int64? maxProperties,
- Int64? minProperties,
- Iterable<
String> ? required, - Iterable<
String> ? array, - Iterable<
JSONSchema_JSONSchemaSimpleTypes> ? type, - String? format,
- Iterable<
String> ? enum_46, - Map<
String, Value> ? extensions, - JSONSchema_FieldConfiguration? fieldConfiguration,
Implementation
factory JSONSchema({
$core.String? ref,
$core.String? title,
$core.String? description,
$core.String? default_7,
$core.bool? readOnly,
$core.String? example,
$core.double? multipleOf,
$core.double? maximum,
$core.bool? exclusiveMaximum,
$core.double? minimum,
$core.bool? exclusiveMinimum,
$fixnum.Int64? maxLength,
$fixnum.Int64? minLength,
$core.String? pattern,
$fixnum.Int64? maxItems,
$fixnum.Int64? minItems,
$core.bool? uniqueItems,
$fixnum.Int64? maxProperties,
$fixnum.Int64? minProperties,
$core.Iterable<$core.String>? required,
$core.Iterable<$core.String>? array,
$core.Iterable<JSONSchema_JSONSchemaSimpleTypes>? type,
$core.String? format,
$core.Iterable<$core.String>? enum_46,
$core.Map<$core.String, $0.Value>? extensions,
JSONSchema_FieldConfiguration? fieldConfiguration,
}) {
final _result = create();
if (ref != null) {
_result.ref = ref;
}
if (title != null) {
_result.title = title;
}
if (description != null) {
_result.description = description;
}
if (default_7 != null) {
_result.default_7 = default_7;
}
if (readOnly != null) {
_result.readOnly = readOnly;
}
if (example != null) {
_result.example = example;
}
if (multipleOf != null) {
_result.multipleOf = multipleOf;
}
if (maximum != null) {
_result.maximum = maximum;
}
if (exclusiveMaximum != null) {
_result.exclusiveMaximum = exclusiveMaximum;
}
if (minimum != null) {
_result.minimum = minimum;
}
if (exclusiveMinimum != null) {
_result.exclusiveMinimum = exclusiveMinimum;
}
if (maxLength != null) {
_result.maxLength = maxLength;
}
if (minLength != null) {
_result.minLength = minLength;
}
if (pattern != null) {
_result.pattern = pattern;
}
if (maxItems != null) {
_result.maxItems = maxItems;
}
if (minItems != null) {
_result.minItems = minItems;
}
if (uniqueItems != null) {
_result.uniqueItems = uniqueItems;
}
if (maxProperties != null) {
_result.maxProperties = maxProperties;
}
if (minProperties != null) {
_result.minProperties = minProperties;
}
if (required != null) {
_result.required.addAll(required);
}
if (array != null) {
_result.array.addAll(array);
}
if (type != null) {
_result.type.addAll(type);
}
if (format != null) {
_result.format = format;
}
if (enum_46 != null) {
_result.enum_46.addAll(enum_46);
}
if (extensions != null) {
_result.extensions.addAll(extensions);
}
if (fieldConfiguration != null) {
_result.fieldConfiguration = fieldConfiguration;
}
return _result;
}