code: def from_array(array):
          
          if array is None or not array:
              return None
          # end if
          assert_type_or_raise(array, dict, parameter_name="array")
          from pytgbot.api_types.receivable.media import Animation
          from pytgbot.api_types.receivable.media import MessageEntity
          from pytgbot.api_types.receivable.media import PhotoSize
          
  
          data = {}
          data['title'] = u(array.get('title'))
          data['description'] = u(array.get('description'))
          data['photo'] = PhotoSize.from_array_list(array.get('photo'), list_level=1)
          data['text'] = u(array.get('text')) if array.get('text') is not None else None
          data['text_entities'] = MessageEntity.from_array_list(array.get('text_entities'), list_level=1) if array.get('text_entities') is not None else None
          data['animation'] = Animation.from_array(array.get('animation')) if array.get('animation') is not None else None
          data['_raw'] = array
          return Game(**data)
docs: Deserialize a new Game from a given dictionary.
  
          :return: new Game instance.
          :rtype: Game