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 PhotoSize
          
  
          data = {}
          data['file_id'] = u(array.get('file_id'))
          data['duration'] = int(array.get('duration'))
          data['performer'] = u(array.get('performer')) if array.get('performer') is not None else None
          data['title'] = u(array.get('title')) if array.get('title') is not None else None
          data['mime_type'] = u(array.get('mime_type')) if array.get('mime_type') is not None else None
          data['file_size'] = int(array.get('file_size')) if array.get('file_size') is not None else None
          data['thumb'] = PhotoSize.from_array(array.get('thumb')) if array.get('thumb') is not None else None
          data['_raw'] = array
          return Audio(**data)
docs: Deserialize a new Audio from a given dictionary.
  
          :return: new Audio instance.
          :rtype: Audio