package io.delphiplatform.api.config;

import org.springframework.core.convert.converter.Converter;

import javax.annotation.Nullable;

import io.delphiplatform.api.v3.model.tiktok.top.video.TikTokTopIsrcVideoTopBy;

public class TikTokTopIsrcVideoTopByEnumConverter implements Converter<String, TikTokTopIsrcVideoTopBy> {

    @Override
    public TikTokTopIsrcVideoTopBy convert(@Nullable String source) {
        return TikTokTopIsrcVideoTopBy.fromValue(source);
    }
}