
com.enofex.naikan.model.module.BranchesDeserializer Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of naikan-model Show documentation
Show all versions of naikan-model Show documentation
The Naikan Model Module for Naikan the software inventory management tool for dev teams driven
by our CI/CD pipeline.
The newest version!
package com.enofex.naikan.model.module;
import com.enofex.naikan.model.Branch;
import com.enofex.naikan.model.Branches;
import com.fasterxml.jackson.core.JsonParser;
import com.fasterxml.jackson.databind.DeserializationContext;
import java.io.IOException;
import java.io.Serial;
import java.util.List;
final class BranchesDeserializer extends AbstractDeserializer {
@Serial
private static final long serialVersionUID = 1L;
static final BranchesDeserializer INSTANCE = new BranchesDeserializer();
BranchesDeserializer() {
super(Branches.class, Branches.empty());
}
@Override
public Branches deserialize(JsonParser jsonParser, DeserializationContext ctx)
throws IOException {
Branch[] branches = jsonParser.readValueAs(Branch[].class);
return new Branches(List.of(branches));
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy