package io.delphiplatform.api.config;

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

import javax.annotation.Nullable;

import io.delphiplatform.api.v3.model.video.ExpandTo;

public class ExpandToEnumConverter implements Converter<String, ExpandTo> {

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