This function object of class Cat.
# S4 method for json
fromJSONCat(jsonObj)# S4 method for character
fromJSONCat(jsonObj)
A json object with elements matching Cat object slots
The function fromJSONCat returns an object of class Cat with slots populated with the corresponding information stored in the jsonObj.
See Cat-class for required Cat object slots.
The jsonObj argument of the function fromJSONCat is an object of class json from the rjson package. This function simply populates a Cat object with the information provided in the jsonObj, thus element and slot names must match.