DefaultResponse<T>.fromJson constructor

DefaultResponse<T>.fromJson(
  1. dynamic json,
  2. dynamic decoders, {
  3. required Type type,
})

Implementation

DefaultResponse.fromJson(json, decoders, {required Type type}) {
  data = decoders[type]!(json) as T;
}