integer static method
Create an integer property schema
Implementation
static Map<String, dynamic> integer({
String? description,
bool required = false,
int? defaultValue,
}) {
final schema = <String, dynamic>{
'type': 'integer',
if (description != null) 'description': description,
if (defaultValue != null) 'default': defaultValue,
};
return schema;
}