/**
  * Utility function used to create a new instance from a JSON string.
  *
  * @param array $json a PHP array which contains the result of a 'json_decode' execution.
  *
  * @return \Gomoob\Pushwoosh\Model\Response\GetNearestZoneResponse the resulting instance.
  */
 public static function create(array $json)
 {
     $getNearestZoneResponse = new GetNearestZoneResponse();
     $getNearestZoneResponse->setStatusCode($json['status_code']);
     $getNearestZoneResponse->setStatusMessage($json['status_message']);
     // If a 'response' is provided
     if (array_key_exists('response', $json) && isset($json['response'])) {
         $getNearestZoneResponseResponse = new GetNearestZoneResponseResponse();
         $getNearestZoneResponseResponse->setDistance($json['response']['distance']);
         $getNearestZoneResponseResponse->setLat($json['response']['lat']);
         $getNearestZoneResponseResponse->setLng($json['response']['lng']);
         $getNearestZoneResponseResponse->setName($json['response']['name']);
         $getNearestZoneResponseResponse->setRange($json['response']['range']);
         $getNearestZoneResponse->setResponse($getNearestZoneResponseResponse);
     }
     return $getNearestZoneResponse;
 }