toJson method
Implementation
@override
Map<String, dynamic> toJson() => {
'type': 'array',
'items': {
'type': 'string',
...enumSchema.toJson(),
},
if (title != null) 'title': title,
if (description != null) 'description': description,
if (uniqueItems) 'uniqueItems': true,
if (minItems != null) 'minItems': minItems,
if (maxItems != null) 'maxItems': maxItems,
if (defaultValue != null) 'default': defaultValue,
};