ValidaList<T>.fromJson constructor

ValidaList<T>.fromJson(
  1. Map<String, Object?> map
)

Implementation

factory ValidaList.fromJson(Map<String, Object?> map) {
  return ValidaList(
    minLength: map['minLength'] as int?,
    maxLength: map['maxLength'] as int?,
    each: map['each'] == null
        ? null
        : (ValidaField.fromJson(map['each']! as Map<String, Object?>)
            as ValidaField<T>),
    customValidateName: map['customValidate'] as String?,
  );
}