numberProperty static method

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

Helper method to create a number property schema.

Implementation

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