All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.sportradar.unifiedodds.sdk.entities.StageType Maven / Gradle / Ivy

/*
 * Copyright (C) Sportradar AG. See LICENSE for full license governing this code
 */

package com.sportradar.unifiedodds.sdk.entities;

/**
 * An enumeration of possible stage types
 */
public enum StageType {
    Parent,Child;

    public static StageType mapFromApiValue(String str) {
        if(str == null) {
            return null;
        }

        switch (str) {
            case "child":
                return Child;
            case "parent":
                return Parent;
        }

        return null;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy