/**
  * {@inheritdoc}
  */
 public static function fromArray(array $values)
 {
     $message = new self();
     $values = array_merge(['fort_id' => null, 'team_color' => null, 'pokemon_data' => null, 'name' => null, 'image_urls' => [], 'fp' => null, 'stamina' => null, 'max_stamina' => null, 'type' => null, 'latitude' => null, 'longitude' => null, 'description' => null, 'modifiers' => []], $values);
     $message->setFortId($values['fort_id']);
     $message->setTeamColor($values['team_color']);
     $message->setPokemonData($values['pokemon_data']);
     $message->setName($values['name']);
     $message->setFp($values['fp']);
     $message->setStamina($values['stamina']);
     $message->setMaxStamina($values['max_stamina']);
     $message->setType($values['type']);
     $message->setLatitude($values['latitude']);
     $message->setLongitude($values['longitude']);
     $message->setDescription($values['description']);
     foreach ($values['image_urls'] as $item) {
         $message->addImageUrls($item);
     }
     foreach ($values['modifiers'] as $item) {
         $message->addModifiers($item);
     }
     return $message;
 }