Schema constructor
Schema({
- JSONSchema? jsonSchema,
- String? discriminator,
- bool? readOnly,
- ExternalDocumentation? externalDocs,
- 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;
}