* Instantiate the instance using the passed json values to set the properties values
*/
init(fromJsonjson:JSON!){
ifjson.isEmpty{
return
}
data=[String]()
letdataArray=json["data"].arrayValue
fordataJsonindataArray{
data.append(dataJson.stringValue)
}
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
* Instantiate the instance using the passed json values to set the properties values
*/
init(fromJsonjson:JSON!){
ifjson.isEmpty{
return
}
data=json["data"].stringValue
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
* 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
* 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]()
ifpage!=nil{
dictionary["page"]=page
}
ifpageCount!=nil{
dictionary["pageCount"]=pageCount
}
ifpageSize!=nil{
dictionary["pageSize"]=pageSize
}
ifrecordCount!=nil{
dictionary["recordCount"]=recordCount
}
returndictionary
}
}
}
classTodoData{
classTodoData{
varpaging:Paging!
varpaging:Paging!
varrecords:[Record]!
varrecords:[TodoRecord]!
/**
/**
* Instantiate the instance using the passed json values to set the properties values
* Instantiate the instance using the passed json values to set the properties values