validate method

Map<String, List<DfError>> validate()

Implementation

Map<String, List<DfError>> validate() {
  toMap();

  Map<String, List<DfError>> errors = Map<String, List<DfError>>();
  fields().forEach((field) {
    //print("validating for field: ${field.name}");
    errors.addAll(field.validate());
    //print("validating for field: ${field.name}, errors size: ${errors.length}");
  });
  return errors;
}