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 ID:
      return isSetId();
    case COMMAND:
      return isSetCommand();
    case RESULT:
      return isSetResult();
    case START_TIME:
      return isSetStart_time();
    case STOP_TIME:
      return isSetStop_time();
    default:
      throw new ArgumentError("Field $fieldID doesn't exist!");
  }
}