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