deleteStatus property

SegmentDeleteStatus? deleteStatus

Returns the value of the deleteStatus field. Returns null if the field is not defined in the message.

Implementation

SegmentDeleteStatus? get deleteStatus {
  final field = getField(SegmentIdDeleteStatusField.ID);
  if (field != null && field.isValid()) {
    var subField = field.getValidSubField(fields);
    final value = field.getValue(subField: subField);
    if (value == null) {
      return null;
    }
    return SegmentDeleteStatusExt.fromValue(value);
  } else {
    return null;
  }
}
void deleteStatus=(SegmentDeleteStatus? value)

Sets the deleteStatus field with value. Throws FieldNotDefinedError if the field is not defined in the message.

Implementation

set deleteStatus(SegmentDeleteStatus? value) {
  final field = getField(SegmentIdDeleteStatusField.ID);

  if (field != null) {
    if (value == null) {
      field.clear();
    } else {
      var subField = field.getValidSubField(fields);
      field.setValue(0, value.value, subField);
    }
  } else {
    throw FieldNotDefinedError(field!.name);
  }
}