'Country', 'carrier' => 'Carrier', 'region' => 'Region', ]; public function validate() { } public function toMap() { $res = []; if (null !== $this->country) { $res['Country'] = $this->country; } if (null !== $this->carrier) { $res['Carrier'] = $this->carrier; } if (null !== $this->region) { $res['Region'] = $this->region; } return $res; } /** * @param array $map * * @return numberDetail */ public static function fromMap($map = []) { $model = new self(); if (isset($map['Country'])) { $model->country = $map['Country']; } if (isset($map['Carrier'])) { $model->carrier = $map['Carrier']; } if (isset($map['Region'])) { $model->region = $map['Region']; } return $model; } }