Id2MetaVerifyRequest.php 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  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 Id2MetaVerifyRequest extends Model
  6. {
  7. /**
  8. * @example 412722198610274919
  9. *
  10. * @var string
  11. */
  12. public $identifyNum;
  13. /**
  14. * @example normal
  15. *
  16. * @var string
  17. */
  18. public $paramType;
  19. /**
  20. * @var string
  21. */
  22. public $userName;
  23. protected $_name = [
  24. 'identifyNum' => 'IdentifyNum',
  25. 'paramType' => 'ParamType',
  26. 'userName' => 'UserName',
  27. ];
  28. public function validate()
  29. {
  30. }
  31. public function toMap()
  32. {
  33. $res = [];
  34. if (null !== $this->identifyNum) {
  35. $res['IdentifyNum'] = $this->identifyNum;
  36. }
  37. if (null !== $this->paramType) {
  38. $res['ParamType'] = $this->paramType;
  39. }
  40. if (null !== $this->userName) {
  41. $res['UserName'] = $this->userName;
  42. }
  43. return $res;
  44. }
  45. /**
  46. * @param array $map
  47. *
  48. * @return Id2MetaVerifyRequest
  49. */
  50. public static function fromMap($map = [])
  51. {
  52. $model = new self();
  53. if (isset($map['IdentifyNum'])) {
  54. $model->identifyNum = $map['IdentifyNum'];
  55. }
  56. if (isset($map['ParamType'])) {
  57. $model->paramType = $map['ParamType'];
  58. }
  59. if (isset($map['UserName'])) {
  60. $model->userName = $map['UserName'];
  61. }
  62. return $model;
  63. }
  64. }