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://api.flutter.dev/flutter/dart-ui/Radius-class.html',
  'title': 'Radius',
  'oneOf': [
    SchemaHelper.numberSchema,
    {
      'type': 'object',
      'additionalProperties': false,
      'required': [
        'radius',
        'type',
      ],
      'properties': {
        'radius': SchemaHelper.numberSchema,
        'type': {
          'type': 'string',
          'enum': [
            'circular',
          ],
        },
      },
    },
    {
      'type': 'object',
      'additionalProperties': false,
      'required': [
        'x',
        'y',
        'type',
      ],
      'properties': {
        'x': SchemaHelper.numberSchema,
        'y': SchemaHelper.numberSchema,
        'type': {
          'type': 'string',
          'enum': [
            'elliptical',
          ],
        },
      },
    },
    {
      'type': 'object',
      'additionalProperties': false,
      'required': [
        'type',
      ],
      'properties': {
        'type': {
          'type': 'string',
          'enum': [
            'zero',
          ],
        },
      },
    }
  ],
};