// // TunnelProviderReply.swift // PacketTunnelCore // // Created by pronebird on 20/10/2022. // Copyright © 2025 Mullvad VPN AB. All rights reserved. // import Foundation /// Container type for tunnel provider reply. public struct TunnelProviderReply: Codable { public var value: T public init(_ value: T) { self.value = value } public init(messageData: Data) throws { self = try JSONDecoder().decode(Self.self, from: messageData) } public func encode() throws -> Data { try JSONEncoder().encode(self) } }