toJson method

Map<String, dynamic> toJson()

Implementation

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