batchCallRecipientStatusNullableFromJson function

BatchCallRecipientStatus? batchCallRecipientStatusNullableFromJson(
  1. Object? batchCallRecipientStatus, [
  2. BatchCallRecipientStatus? defaultValue
])

Implementation

enums.BatchCallRecipientStatus? batchCallRecipientStatusNullableFromJson(
  Object? batchCallRecipientStatus, [
  enums.BatchCallRecipientStatus? defaultValue,
]) {
  if (batchCallRecipientStatus == null) {
    return null;
  }
  return enums.BatchCallRecipientStatus.values
          .firstWhereOrNull((e) => e.value == batchCallRecipientStatus) ??
      defaultValue;
}