toMap method Null safety
Implementation
Map<String, dynamic> toMap() {
if (_sourceMap != null) return _sourceMap!;
return {
'code': code,
'data': data,
'msg': errorDetails,
};
}
Map<String, dynamic> toMap() {
if (_sourceMap != null) return _sourceMap!;
return {
'code': code,
'data': data,
'msg': errorDetails,
};
}