schema property

Map<String, Object> schema
final

Implementation

static final schema = {
  r'$schema': 'http://json-schema.org/draft-06/schema#',
  r'$id': '$id',
  r'$comment':
      'https://pub.dev/documentation/charts_common/latest/common/SelectNearest-class.html',
  'title': 'SelectNearest',
  'type': 'object',
  'additionalProperties': false,
  'properties': {
    'eventTrigger': SchemaHelper.objectSchema(SelectionTriggerSchema.id),
    'maximumDomainDistancePx': SchemaHelper.numberSchema,
    'selectAcrossAllDrawAreaComponents': SchemaHelper.boolSchema,
    'selectClosestSeries': SchemaHelper.boolSchema,
    'selectionMode': SchemaHelper.objectSchema(SelectionModeSchema.id),
    'selectionModelType': SchemaHelper.objectSchema(
      SelectionModelTypeSchema.id,
    ),
    'type': {
      'type': 'string',
      'enum': [
        'select_nearest',
      ],
    },
  },
};