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

com.yoti.api.client.identity.extension.Extension Maven / Gradle / Ivy

The newest version!
package com.yoti.api.client.identity.extension;

import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;

public class Extension {

    @JsonProperty(Property.TYPE)
    private final String type;

    @JsonProperty(Property.CONTENT)
    private final T content;

    @JsonCreator
    Extension(@JsonProperty(Property.TYPE) String type, @JsonProperty(Property.CONTENT) T content) {
        this.type = type;
        this.content = content;
    }

    public String getType() {
        return type;
    }

    public T getContent() {
        return content;
    }

    private static final class Property {

        private static final String TYPE = "type";
        private static final String CONTENT = "content";

    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy