isSet method

bool isSet(
  1. int fieldID
)
override

Check if a field is currently set or unset, using the fieldId.

Implementation

bool isSet(int fieldID) {
  switch (fieldID) {
    case ERROR_CODE:
      return isSetError_code();
    case ERROR_MSG:
      return isSetError_msg();
    case SESSION_ID:
      return isSetSession_id();
    case TIME_ZONE_OFFSET_SECONDS:
      return isSetTime_zone_offset_seconds();
    case TIME_ZONE_NAME:
      return isSetTime_zone_name();
    default:
      throw new ArgumentError("Field $fieldID doesn't exist!");
  }
}