booleanProperty static method

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

Helper method to create a boolean property schema.

Implementation

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