public function FindPostsResponse::__construct in HTTP Client Manager 8
FindPostsResponse constructor.
Parameters
array $json: The JSON response.
File
- modules/
http_client_manager_example/ src/ Response/ FindPostsResponse.php, line 67
Class
- FindPostsResponse
- Class FindPostsResponse.
Namespace
Drupal\http_client_manager_example\ResponseCode
public function __construct($json) {
$this->userId = $json['userId'];
$this->id = $json['id'];
$this->title = $json['title'];
$this->body = $json['body'];
}