Class LocalResponse


  • public class LocalResponse
    extends BaseLocalResponse
    A Mindee response saved locally.
    • Method Detail

      • deserializeResponse

        public <T extends CommonResponse> T deserializeResponse​(Class<T> responseClass)
        Deserialize this local JSON payload into a specific CommonResponse subtype: InferenceResponse, JobResponse.
        Type Parameters:
        T - generic CommonResponse
        Parameters:
        responseClass - the concrete class to instantiate
        Returns:
        Either a InferenceResponse or JobResponse instance.
        Throws:
        MindeeException - if the payload cannot be deserialized into the requested type