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

io.quarkiverse.openfga.client.model.Metadata Maven / Gradle / Ivy

There is a newer version: 2.1.0
Show newest version
package io.quarkiverse.openfga.client.model;

import java.util.Map;
import java.util.Objects;

import javax.annotation.Nullable;

import com.fasterxml.jackson.annotation.JsonCreator;

public class Metadata {
    @Nullable
    Map relations;

    @JsonCreator
    public Metadata(@Nullable Map relations) {
        this.relations = relations;
    }

    @Nullable
    public Map getRelations() {
        return relations;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o)
            return true;
        if (!(o instanceof Metadata))
            return false;
        Metadata metadata = (Metadata) o;
        return Objects.equals(relations, metadata.relations);
    }

    @Override
    public int hashCode() {
        return Objects.hash(relations);
    }

    @Override
    public String toString() {
        return "Metadata{" +
                "relations=" + relations +
                '}';
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy