//
//  PQEditMaterialPositionModel.swift
//  PQSpeed
//
//  Created by ak on 2020/12/5.
//  Copyright © 2020 BytesFlow. All rights reserved.
//

import ObjectMapper
import RealmSwift
import UIKit

public class PQEditMaterialPositionModel: PQEditBaseModel {
    @objc dynamic public var x: Int = 0
    @objc dynamic public var y: Int = 0
    @objc dynamic public var width: Int = 0
    @objc dynamic public var height: Int = 0

    required convenience init?(map _: Map) {
        self.init()
    }

    public  override func mapping(map: Map) {
        x <- map["x"]
        y <- map["y"]
        width <- map["width"]
        height <- map["height"]
    }
}
