fixed deserialize method in ApiClient