integer static method

Map<String, dynamic> integer({
  1. String? description,
  2. bool required = false,
  3. int? defaultValue,
})

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;
}