schema property

Map<String, Object> schema
final

Implementation

static final schema = {
  r'$schema': 'http://json-schema.org/draft-07/schema#',
  r'$id': id,
  r'$children': -1,
  'title': 'Dynamic',
  'oneOf': [
    {'type': 'null'},
    {
      'type': 'object',
      'additionalProperties': true,
      'properties': {
        'dynamic': {
          'type': 'object',
          'additionalProperties': false,
          'properties': {
            'builderType': SchemaHelper.stringSchema,
            'childTemplate': {'type': 'object', 'additionalProperties': true},
            'initState': {
              'oneOf': [
                {'type': 'null'},
                {
                  'type': 'array',
                  'items': {'type': 'object', 'additionalProperties': true},
                },
              ],
            },
          },
        },
      },
    },
  ],
};