enum IndustryDetailDisplayBufferType :String{
    case industry = "industry" //项目
    case building = "building"
    case enterprise = "enterprise"
    case mechant = "mechant"
    case poi = "poi"
}

struct IndustrySearchSortedType : Mappable {
    
    //if true ,表示是`项目`、`楼宇`、`企业`、`招商载体`; 否则表示是通过地图分类查询到的地图图形
    var isSearchedSubItems:Bool = false
    // 当 isSearchedSubItems = true 时,生效
    var sortedModel : IndustryDetailDisplayBufferType?   //需要一个transation
    
    init?(map:Map) {
    }
    
    mutating func mapping(map:Map) {
        isSearchedSubItems <- map["isSearchedSubItems"]
        sortedModel <- (map["sortedModel"],EnumTransform<IndustryDetailDisplayBufferType>())
    }
    
                                                                                                                                                                                             
    static func fromJsonString(str:String?) -> IndustrySearchSortedType?{
        if let str = str {
            return Mapper<IndustrySearchSortedType>().map(JSONString: str)
        }else {
            return nil
        }
    }   
}