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

import Foundation

public struct MiniProfileV2Schema: Codable, Equatable {
    public var avatarImageUrl: String?
    public var displayName: String
    public var handle: String?
    public var isFollowing: Bool
    public var type: `Type`?

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

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

        public static let user = Self(rawValue: "user")
        public static let system = Self(rawValue: "system")
    }

    public init(avatarImageUrl: String? = nil, displayName: String, handle: String? = nil, isFollowing: Bool? = nil, type: `Type`? = nil) {
        self.avatarImageUrl = avatarImageUrl
        self.displayName = displayName
        self.handle = handle
        self.isFollowing = isFollowing ?? false
        self.type = type
    }
}
