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/SymbolRenderer-class.html',
  'title': 'SymbolRenderer',
  'type': 'object',
  'additionalProperties': false,
  'properties': {
    'dashPattern': SchemaHelper.anySchema,
    'icon': SchemaHelper.stringSchema,
    'isSolid': SchemaHelper.boolSchema,
    'radius': SchemaHelper.numberSchema,
    'size': SchemaHelper.numberSchema,
    'strokeWidth': SchemaHelper.numberSchema,
    'type': {
      'type': 'string',
      'enum': [
        'circle',
        'icon',
        'line',
        'rect',
        'rounded_rect',
        'triangle',
      ],
    },
  },
};