def _from_dict(cls, _dict):
        """Initialize a AudioResources object from a json dictionary."""
        args = {}
        if 'total_minutes_of_audio' in _dict:
            args['total_minutes_of_audio'] = _dict.get('total_minutes_of_audio')
        else:
            raise ValueError(
                'Required property \'total_minutes_of_audio\' not present in AudioResources JSON'
            )
        if 'audio' in _dict:
            args['audio'] = [
                AudioResource._from_dict(x) for x in (_dict.get('audio'))
            ]
        else:
            raise ValueError(
                'Required property \'audio\' not present in AudioResources JSON'
            )
        return cls(**args)
def _from_dict ( cls , _dict ) : args = { } if 'total_minutes_of_audio' in _dict : args [ 'total_minutes_of_audio' ] = _dict . get ( 'total_minutes_of_audio' ) else : raise ValueError ( 'Required property \'total_minutes_of_audio\' not present in AudioResources JSON' ) if 'audio' in _dict : args [ 'audio' ] = [ AudioResource . _from_dict ( x ) for x in ( _dict . get ( 'audio' ) ) ] else : raise ValueError ( 'Required property \'audio\' not present in AudioResources JSON' ) return cls ( ** args )
Initialize a AudioResources object from a json dictionary.