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

There is a newer version: 0.3.5
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