public function denormalize($data, $class, $format = null, array $context = [])
 {
     if (empty($data)) {
         return null;
     }
     if (isset($data->{'$ref'})) {
         return new Reference($data->{'$ref'}, $context['rootSchema'] ?: null);
     }
     $object = new \Docker\API\Model\ContainerTop();
     if (!isset($context['rootSchema'])) {
         $context['rootSchema'] = $object;
     }
     if (isset($data->{'Titles'})) {
         $values_111 = [];
         foreach ($data->{'Titles'} as $value_112) {
             $values_111[] = $value_112;
         }
         $object->setTitles($values_111);
     }
     if (isset($data->{'Processes'})) {
         $values_113 = [];
         foreach ($data->{'Processes'} as $value_114) {
             $values_115 = [];
             foreach ($value_114 as $value_116) {
                 $values_115[] = $value_116;
             }
             $values_113[] = $values_115;
         }
         $object->setProcesses($values_113);
     }
     return $object;
 }
 public function denormalize($data, $class, $format = null, array $context = [])
 {
     if (empty($data)) {
         return null;
     }
     if (isset($data->{'$ref'})) {
         return new Reference($data->{'$ref'}, $context['rootSchema'] ?: null);
     }
     $object = new \Docker\API\Model\ContainerTop();
     if (!isset($context['rootSchema'])) {
         $context['rootSchema'] = $object;
     }
     if (isset($data->{'Titles'})) {
         $values_147 = [];
         foreach ($data->{'Titles'} as $value_148) {
             $values_147[] = $value_148;
         }
         $object->setTitles($values_147);
     }
     if (isset($data->{'Processes'})) {
         $values_149 = [];
         foreach ($data->{'Processes'} as $value_150) {
             $values_151 = [];
             foreach ($value_150 as $value_152) {
                 $values_151[] = $value_152;
             }
             $values_149[] = $values_151;
         }
         $object->setProcesses($values_149);
     }
     return $object;
 }
 public function denormalize($data, $class, $format = null, array $context = [])
 {
     if (empty($data)) {
         return null;
     }
     if (isset($data->{'$ref'})) {
         return new Reference($data->{'$ref'}, $context['rootSchema'] ?: null);
     }
     $object = new \Docker\API\Model\ContainerTop();
     if (!isset($context['rootSchema'])) {
         $context['rootSchema'] = $object;
     }
     if (property_exists($data, 'Titles')) {
         $value = $data->{'Titles'};
         if (is_array($data->{'Titles'})) {
             $values = [];
             foreach ($data->{'Titles'} as $value_1) {
                 $values[] = $value_1;
             }
             $value = $values;
         }
         if (is_null($data->{'Titles'})) {
             $value = $data->{'Titles'};
         }
         $object->setTitles($value);
     }
     if (property_exists($data, 'Processes')) {
         $value_2 = $data->{'Processes'};
         if (is_array($data->{'Processes'})) {
             $values_1 = [];
             foreach ($data->{'Processes'} as $value_3) {
                 $value_4 = $value_3;
                 if (is_array($value_3)) {
                     $values_2 = [];
                     foreach ($value_3 as $value_5) {
                         $values_2[] = $value_5;
                     }
                     $value_4 = $values_2;
                 }
                 if (is_null($value_3)) {
                     $value_4 = $value_3;
                 }
                 $values_1[] = $value_4;
             }
             $value_2 = $values_1;
         }
         if (is_null($data->{'Processes'})) {
             $value_2 = $data->{'Processes'};
         }
         $object->setProcesses($value_2);
     }
     return $object;
 }