// Generated by Create API
// https://github.com/CreateAPI/CreateAPI

import Foundation

public struct BannerGraphicCardSchema: Codable, Equatable {
    public var backgroundImage: String?
    public var backgroundMp4: String?
    public var textBackgroundColor: String?
    public var textSubtitle: LocalStringSchema?
    public var textTitle: LocalStringSchema?
    public var type: `Type`?
    public var url: String?

    /// Type
    public struct `Type`: RawRepresentable, Codable, Equatable {
        public let rawValue: String

        public init(rawValue: String) {
            self.rawValue = rawValue
        }

        public static let graphicCard = Self(rawValue: "graphic_card")
    }

    public init(backgroundImage: String? = nil, backgroundMp4: String? = nil, textBackgroundColor: String? = nil, textSubtitle: LocalStringSchema? = nil, textTitle: LocalStringSchema? = nil, type: `Type`? = nil, url: String? = nil) {
        self.backgroundImage = backgroundImage
        self.backgroundMp4 = backgroundMp4
        self.textBackgroundColor = textBackgroundColor
        self.textSubtitle = textSubtitle
        self.textTitle = textTitle
        self.type = type
        self.url = url
    }
}
