toJson method
Implementation
@visibleForTesting
Map<String, dynamic> toJson() => {
"code": code.value,
"message": message,
"underlyingError": underlyingError?.toJson()
}.clearNulls();
@visibleForTesting
Map<String, dynamic> toJson() => {
"code": code.value,
"message": message,
"underlyingError": underlyingError?.toJson()
}.clearNulls();