Schema.number constructor
const
Schema.number({
- Xml? xml,
- String? title,
- String? description,
- @JsonKey(name: 'default', fromJson: _fromJsonDouble) double? defaultValue,
- bool? nullable,
- @JsonKey(unknownEnumValue: JsonKey.nullForUndefinedEnumValue) NumberFormat? format,
- @JsonKey(fromJson: _fromJsonDouble) double? example,
- @JsonKey(fromJson: _fromJsonDouble) double? minimum,
- @JsonKey(fromJson: _fromJsonDouble) double? maximum,
- bool? exclusiveMinimum,
- bool? exclusiveMaximum,
- @JsonKey(fromJson: _fromJsonDouble) double? multipleOf,
- @JsonKey(name: '\$ref') @_SchemaRefConverter() String? ref,
A number schema property
Implementation
const factory Schema.number({
Xml? xml,
String? title,
String? description,
@JsonKey(name: 'default', fromJson: _fromJsonDouble) double? defaultValue,
bool? nullable,
@JsonKey(unknownEnumValue: JsonKey.nullForUndefinedEnumValue)
NumberFormat? format,
@JsonKey(fromJson: _fromJsonDouble) double? example,
@JsonKey(fromJson: _fromJsonDouble) double? minimum,
@JsonKey(fromJson: _fromJsonDouble) double? maximum,
bool? exclusiveMinimum,
bool? exclusiveMaximum,
@JsonKey(fromJson: _fromJsonDouble) double? multipleOf,
@JsonKey(name: '\$ref') @_SchemaRefConverter() String? ref,
}) = SchemaNumber;