StringElicitationField.fromJson constructor

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

Implementation

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