validate method
dynamic
validate()
Implementation
validate() {
// check for required fields
if (key == null) {
throw new TProtocolError(TProtocolErrorType.UNKNOWN,
"Required field 'key' was not present! Struct: " + toString());
}
if (value == null) {
throw new TProtocolError(TProtocolErrorType.UNKNOWN,
"Required field 'value' was not present! Struct: " + toString());
}
// check that fields of type enum have valid values
}