StringSchema.fromJson constructor

StringSchema.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory StringSchema.fromJson(Map<String, dynamic> json) {
  return StringSchema(
    title: json['title'] as String?,
    description: json['description'] as String?,
    minLength: json['minLength'] as int?,
    maxLength: json['maxLength'] as int?,
    format: json['format'] as String?,
    defaultValue: json['default'] as String?,
  );
}