schema property
Implementation
static final schema = {
r'$schema': 'http://json-schema.org/draft-06/schema#',
r'$id': id,
r'$children': 1,
r'$comment':
'https://pub.dev/documentation/json_dynamic_widget/latest/json_dynamic_widget/JsonWidgetData-class.html',
'title': 'JsonWidgetData',
'oneOf': [
{
'type': 'string',
},
{
'type': 'object',
'additionalProperties': false,
'required': [
'type',
],
'properties': {
'args': {
'type': 'object',
'additionalProperties': true,
},
'child': SchemaHelper.anySchema,
'children': {
'anyOf': [
{
'type': 'string',
},
{
'type': 'array',
'items': SchemaHelper.anySchema,
},
],
},
'id': {
'type': 'string',
},
'type': {
'type': 'string',
},
'listen': {
'type': 'array',
'items': SchemaHelper.stringSchema,
},
},
},
],
};