DefaultResponse<T>.fromJson constructor
Implementation
DefaultResponse.fromJson(json, Map<Type, dynamic> decoders,
{required Type type}) {
assert(decoders.containsKey(type),
'Your config/decoders.dart file does not contain a decoder for the following class: ${type.toString()} in modelDecoders');
data = decoders[type]!(json) as T;
}