nkResponseFromJson<T> function Null safety

NkResponse<T> nkResponseFromJson<T>(
  1. String body,
  2. T dataFromJson(
    1. String
    )
)

Used to convert Nik Architecture response into Dart models.

Implementation

NkResponse<T> nkResponseFromJson<T>(
        String body, T Function(String) dataFromJson) =>
    NkResponse<T>.fromJson(json.decode(body), dataFromJson);