class Beatmap:
    def __init__(self, api_dict):
        self.beatmapset_id = api_dict['beatmapset_id']
        self.beatmap_id = api_dict['beatmap_id']
        self.approved = api_dict['approved']
        self.total_length = api_dict['total_length']
        self.hit_length = api_dict['hit_length']
        self.version = api_dict['version']
        self.file_md5 = api_dict['file_md5']
        self.diff_size = api_dict['diff_size']
        self.diff_overall = api_dict['diff_overall']
        self.diff_approach = api_dict['diff_approach']
        self.diff_drain = api_dict['diff_drain']
        self.mode = api_dict['mode']
        self.count_normal = api_dict['count_normal']
        self.count_slider = api_dict['count_slider']
        self.count_spinner = api_dict['count_spinner']
        self.submit_date = api_dict['submit_date']
        self.approved_date = api_dict['approved_date']
        self.last_update = api_dict['last_update']
        self.artist = api_dict['artist']
        self.title = api_dict['title']
        self.creator = api_dict['creator']
        self.creator_id = api_dict['creator_id']
        self.bpm = api_dict['bpm']
        self.source = api_dict['source']
        self.tags = api_dict['tags']
        self.genre_id = api_dict['genre_id']
        self.language_id = api_dict['language_id']
        self.favourite_count = api_dict['favourite_count']
        self.rating = api_dict['rating']
        self.download_unavailable = api_dict['download_unavailable']
        self.audio_unavailable = api_dict['audio_unavailable']
        self.playcount = api_dict['playcount']
        self.passcount = api_dict['passcount']
        self.max_combo = api_dict['max_combo']
        self.diff_aim = api_dict['diff_aim']
        self.diff_speed = api_dict['diff_speed']
        self.difficultyrating = api_dict['difficultyrating']