StringSchema constructor
StringSchema({})
Implementation
factory StringSchema({
String? title,
String? description,
int? minLength,
int? maxLength,
String? pattern,
Iterable<String>? enumValues,
}) => StringSchema.fromMap({
'type': JsonType.string.typeName,
if (title != null) 'title': title,
if (description != null) 'description': description,
if (minLength != null) 'minLength': minLength,
if (maxLength != null) 'maxLength': maxLength,
if (pattern != null) 'pattern': pattern,
if (enumValues != null) 'enum': enumValues,
});