parse

abstract fun <T> parse(@NotNull input: String, @NotNull clazz: Class<T>): T

Parse input strings to strongly typed objects.

This method will throw an exception if the provided string does not conform to the expected format of the service.

Return

An instance of the required type containing the input data.

Parameters

input

The input string to parse.

clazz

The type to try and parse the data into.