getFieldValue method

dynamic getFieldValue(
  1. int fieldID
)
override

Get a field's value by fieldId. Primitive types will be wrapped in the appropriate "boxed" types.

Implementation

getFieldValue(int fieldID) {
  switch (fieldID) {
    case SPACE_ID:
      return this.space_id;
    case JOB_ID:
      return this.job_id;
    case TYPE:
      return this.type;
    case PARAS:
      return this.paras;
    case STATUS:
      return this.status;
    case START_TIME:
      return this.start_time;
    case STOP_TIME:
      return this.stop_time;
    case CODE:
      return this.code;
    default:
      throw new ArgumentError("Field $fieldID doesn't exist!");
  }
}