validate method

dynamic validate()

Implementation

validate() {
  // check for required fields
  // check that fields of type enum have valid values
  if (isSetNVal() && !NullType.VALID_VALUES.contains(nVal)) {
    throw new TProtocolError(TProtocolErrorType.UNKNOWN,
        "The field 'nVal' has been assigned the invalid value $nVal");
  }
}