toValue method

String toValue()

Implementation

String toValue() {
  switch (this) {
    case DeliveryStatus.successful:
      return 'SUCCESSFUL';
    case DeliveryStatus.throttled:
      return 'THROTTLED';
    case DeliveryStatus.temporaryFailure:
      return 'TEMPORARY_FAILURE';
    case DeliveryStatus.permanentFailure:
      return 'PERMANENT_FAILURE';
    case DeliveryStatus.unknownFailure:
      return 'UNKNOWN_FAILURE';
    case DeliveryStatus.optOut:
      return 'OPT_OUT';
    case DeliveryStatus.duplicate:
      return 'DUPLICATE';
  }
}