conversationHistorySIPTrunkingPhoneCallModelDirectionFromJson function

ConversationHistorySIPTrunkingPhoneCallModelDirection conversationHistorySIPTrunkingPhoneCallModelDirectionFromJson(
  1. Object? conversationHistorySIPTrunkingPhoneCallModelDirection, [
  2. ConversationHistorySIPTrunkingPhoneCallModelDirection? defaultValue
])

Implementation

enums.ConversationHistorySIPTrunkingPhoneCallModelDirection
    conversationHistorySIPTrunkingPhoneCallModelDirectionFromJson(
  Object? conversationHistorySIPTrunkingPhoneCallModelDirection, [
  enums.ConversationHistorySIPTrunkingPhoneCallModelDirection? defaultValue,
]) {
  return enums.ConversationHistorySIPTrunkingPhoneCallModelDirection.values
          .firstWhereOrNull((e) =>
              e.value ==
              conversationHistorySIPTrunkingPhoneCallModelDirection) ??
      defaultValue ??
      enums.ConversationHistorySIPTrunkingPhoneCallModelDirection
          .swaggerGeneratedUnknown;
}