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")
  
          data = {}
          data['id'] = int(array.get('id'))
          data['is_bot'] = bool(array.get('is_bot'))
          data['first_name'] = u(array.get('first_name'))
          data['last_name'] = u(array.get('last_name')) if array.get('last_name') is not None else None
          data['username'] = u(array.get('username')) if array.get('username') is not None else None
          data['language_code'] = u(array.get('language_code')) if array.get('language_code') is not None else None
          data['_raw'] = array
          return User(**data)
docs: Deserialize a new User from a given dictionary.
  
          :return: new User instance.
          :rtype: User