integerProperty static method

Map<String, dynamic> integerProperty({
  1. String? description,
})

Helper method to create an integer property schema.

Implementation

static Map<String, dynamic> integerProperty({String? description}) {
  final property = <String, dynamic>{'type': 'integer'};
  if (description != null) property['description'] = description;
  return property;
}