public function hydrate(array $data = [])
 {
     parent::hydrate($data);
     if (isset($data['intervention_type'])) {
         $this->intervention_type = new \Bixev\InterventionSdk\Model\InterventionType();
         $this->intervention_type->hydrate($data['intervention_type']);
     }
 }
 public function hydrate(array $data = [])
 {
     parent::hydrate($data);
     if (isset($data['intervention_types'])) {
         $this->intervention_types = new \Bixev\InterventionSdk\Model\InterventionTypes();
         if (!is_array($data['intervention_types'])) {
             throw new \Bixev\Rest\Exception\Rest\E400BadRequest('Invalid parameter "intervention_types"');
         }
         $this->intervention_types->hydrate($data['intervention_types']);
     }
     if (isset($data['pagination'])) {
         if (!is_array($data['pagination'])) {
             throw new \Bixev\Rest\Exception\Rest\E400BadRequest('Invalid parameter "pagination"');
         }
         $this->pagination->hydrate($data['pagination']);
     } else {
         if (isset($data['page'])) {
             $this->pagination->page = $data['page'];
         }
         if (isset($data['limit'])) {
             $this->pagination->limit = $data['limit'];
         }
     }
 }