toModel<T> method

T toModel<T>()

Attempt to convert a String into a model by using your model decoders.

Implementation

T toModel<T>() => dataToModel<T>(data: parseJson());