toJson method
Implementation
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
if (this.cause != null) {
json[r'cause'] = this.cause;
} else {
json[r'cause'] = null;
}
json[r'stackTrace'] = this.stackTrace;
if (this.message != null) {
json[r'message'] = this.message;
} else {
json[r'message'] = null;
}
json[r'suppressed'] = this.suppressed;
if (this.localizedMessage != null) {
json[r'localizedMessage'] = this.localizedMessage;
} else {
json[r'localizedMessage'] = null;
}
return json;
}