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

org.vfdtech.models.CoreBankingResponseSerializer Maven / Gradle / Ivy

Go to download

A utilities service with generic tools implementation. Can be plugged into your java project. This is designed for Java 1.8

There is a newer version: 1.0.0
Show newest version
package org.vfdtech.models;

import com.fasterxml.jackson.core.JsonParser;
import com.fasterxml.jackson.databind.DeserializationContext;
import com.fasterxml.jackson.databind.JsonDeserializer;
import com.fasterxml.jackson.databind.ObjectMapper;

import java.io.IOException;
import java.util.Objects;

public class CoreBankingResponseSerializer extends JsonDeserializer {
    private static final ObjectMapper mapper = new ObjectMapper();

    @Override
    public CoreBankingResponse deserialize(JsonParser jsonParser, DeserializationContext deserializationContext)
            throws IOException {
        if (Objects.isNull(jsonParser)) {
            return null;
        }
        return mapper.readValue(jsonParser.getText(), CoreBankingResponse.class);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy