Schema constructor

Schema({
  1. JSONSchema? jsonSchema,
  2. String? discriminator,
  3. bool? readOnly,
  4. ExternalDocumentation? externalDocs,
  5. String? example,
})

Implementation

factory Schema({
  JSONSchema? jsonSchema,
  $core.String? discriminator,
  $core.bool? readOnly,
  ExternalDocumentation? externalDocs,
  $core.String? example,
}) {
  final _result = create();
  if (jsonSchema != null) {
    _result.jsonSchema = jsonSchema;
  }
  if (discriminator != null) {
    _result.discriminator = discriminator;
  }
  if (readOnly != null) {
    _result.readOnly = readOnly;
  }
  if (externalDocs != null) {
    _result.externalDocs = externalDocs;
  }
  if (example != null) {
    _result.example = example;
  }
  return _result;
}