* Instantiate the instance using the passed json values to set the properties values
*/
init(fromJsonjson:JSON!){
ifjson.isEmpty{
return
}
letdataJson=json["data"]
if!dataJson.isEmpty{
data=ChildBillDetailData(fromJson:dataJson)
}
message=json["message"].stringValue
success=json["success"].boolValue
}
/**
* Returns all the available property values in the form of [String:Any] object where the key is the approperiate json key and the value is the value of the corresponding property
*/
functoDictionary()->[String:Any]
{
vardictionary=[String:Any]()
ifdata!=nil{
dictionary["data"]=data.toDictionary()
}
ifmessage!=nil{
dictionary["message"]=message
}
ifsuccess!=nil{
dictionary["success"]=success
}
returndictionary
}
}
openclassChildBillDetailData:NSObject{
varbeginAttachmentId:String!
varcreateId:String!
varcreateOperName:String!
varcreateTime:String!
vardept:UCN!
varendAttachmentId:String!
// var executeMateriels : [AnyObject]!
varexecuteNo:String!
// var executeOutsources : [AnyObject]!
varhasOut:Bool!
varhasPaid:Bool!
varlabourfee:String!
varlastModifyId:String!
varlastModifyOperName:String!
varlastModifyTime:String!
varmaterielfee:String!
varnote:String!
varnoteHeight:CGFloat!=30
varowner:UCN!
varownerTime:String!
varprocessBegin:String!
varprocessEnd:String!
varprocessMode:String!
varprocessor:String!
varproperty1:String!
varproperty2:String!
varreason:String!
varstate:String!
varuuid:String!
varversion:Int!
varworkid:String!
init(_state:String){
self.state=state
}
/**
* Instantiate the instance using the passed json values to set the properties values
* Returns all the available property values in the form of [String:Any] object where the key is the approperiate json key and the value is the value of the corresponding property