public struct PreviewSettingsDeserializer: Decodable {
    private let previewSettings: PreviewSettingsStruct?
    
    private enum CodingKeys: String, CodingKey {
        case previewSettings
    }
    
    public struct PreviewSettingsStruct: Decodable {
        let show: Bool?
        let title: String?
        let subtitle: String?
        let confirmLabel: String?
        let retryLabel: String?
    }
    
    public init(from decoder: Decoder) throws {
        let container = try decoder.container(keyedBy: CodingKeys.self)
        
        previewSettings = try container.decodeIfPresent(PreviewSettingsStruct.self, forKey: .previewSettings)
    }
    
    var getPreviewSettings: PreviewSettingsStruct? {
        previewSettings
    }
}
