conversationHistorySIPTrunkingPhoneCallModelDirectionNullableListFromJson function

List<ConversationHistorySIPTrunkingPhoneCallModelDirection>? conversationHistorySIPTrunkingPhoneCallModelDirectionNullableListFromJson(
  1. List? conversationHistorySIPTrunkingPhoneCallModelDirection, [
  2. List<ConversationHistorySIPTrunkingPhoneCallModelDirection>? defaultValue
])

Implementation

List<enums.ConversationHistorySIPTrunkingPhoneCallModelDirection>?
    conversationHistorySIPTrunkingPhoneCallModelDirectionNullableListFromJson(
  List? conversationHistorySIPTrunkingPhoneCallModelDirection, [
  List<enums.ConversationHistorySIPTrunkingPhoneCallModelDirection>?
      defaultValue,
]) {
  if (conversationHistorySIPTrunkingPhoneCallModelDirection == null) {
    return defaultValue;
  }

  return conversationHistorySIPTrunkingPhoneCallModelDirection
      .map((e) => conversationHistorySIPTrunkingPhoneCallModelDirectionFromJson(
          e.toString()))
      .toList();
}