package com.iqser.red.service.persistence.service.v1.api.shared.model.common;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.RequiredArgsConstructor;

@Data
@EqualsAndHashCode(of = "value")
@RequiredArgsConstructor
public class JSONPrimitive<T> {

    private final T value;


    public static <T> JSONPrimitive<T> of(T value) {

        return new JSONPrimitive<>(value);
    }

}
