DescribeVerifyTokenResponse.php 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. <?php
  2. // This file is auto-generated, don't edit it. Thanks.
  3. namespace AlibabaCloud\SDK\Cloudauth\V20190307\Models;
  4. use AlibabaCloud\Tea\Model;
  5. class DescribeVerifyTokenResponse extends Model
  6. {
  7. /**
  8. * @var string[]
  9. */
  10. public $headers;
  11. /**
  12. * @var int
  13. */
  14. public $statusCode;
  15. /**
  16. * @var DescribeVerifyTokenResponseBody
  17. */
  18. public $body;
  19. protected $_name = [
  20. 'headers' => 'headers',
  21. 'statusCode' => 'statusCode',
  22. 'body' => 'body',
  23. ];
  24. public function validate()
  25. {
  26. }
  27. public function toMap()
  28. {
  29. $res = [];
  30. if (null !== $this->headers) {
  31. $res['headers'] = $this->headers;
  32. }
  33. if (null !== $this->statusCode) {
  34. $res['statusCode'] = $this->statusCode;
  35. }
  36. if (null !== $this->body) {
  37. $res['body'] = null !== $this->body ? $this->body->toMap() : null;
  38. }
  39. return $res;
  40. }
  41. /**
  42. * @param array $map
  43. *
  44. * @return DescribeVerifyTokenResponse
  45. */
  46. public static function fromMap($map = [])
  47. {
  48. $model = new self();
  49. if (isset($map['headers'])) {
  50. $model->headers = $map['headers'];
  51. }
  52. if (isset($map['statusCode'])) {
  53. $model->statusCode = $map['statusCode'];
  54. }
  55. if (isset($map['body'])) {
  56. $model->body = DescribeVerifyTokenResponseBody::fromMap($map['body']);
  57. }
  58. return $model;
  59. }
  60. }