JSONSchema constructor

JSONSchema({
  1. String? ref,
  2. String? title,
  3. String? description,
  4. String? default_7,
  5. bool? readOnly,
  6. String? example,
  7. double? multipleOf,
  8. double? maximum,
  9. bool? exclusiveMaximum,
  10. double? minimum,
  11. bool? exclusiveMinimum,
  12. Int64? maxLength,
  13. Int64? minLength,
  14. String? pattern,
  15. Int64? maxItems,
  16. Int64? minItems,
  17. bool? uniqueItems,
  18. Int64? maxProperties,
  19. Int64? minProperties,
  20. Iterable<String>? required,
  21. Iterable<String>? array,
  22. Iterable<JSONSchema_JSONSchemaSimpleTypes>? type,
  23. String? format,
  24. Iterable<String>? enum_46,
})

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,
}) {
  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);
  }
  return _result;
}