batchCallRecipientStatusListFromJson function

List<BatchCallRecipientStatus> batchCallRecipientStatusListFromJson(
  1. List? batchCallRecipientStatus, [
  2. List<BatchCallRecipientStatus>? defaultValue
])

Implementation

List<enums.BatchCallRecipientStatus> batchCallRecipientStatusListFromJson(
  List? batchCallRecipientStatus, [
  List<enums.BatchCallRecipientStatus>? defaultValue,
]) {
  if (batchCallRecipientStatus == null) {
    return defaultValue ?? [];
  }

  return batchCallRecipientStatus
      .map((e) => batchCallRecipientStatusFromJson(e.toString()))
      .toList();
}