toJson method
Implementation
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
json[r'endpoint'] = this.endpoint;
json[r'payload'] = this.payload;
json[r'event'] = this.event;
json[r'status'] = this.status;
if (this.lastResponseCode != null) {
json[r'lastResponseCode'] = this.lastResponseCode;
} else {
json[r'lastResponseCode'] = null;
}
if (this.lastResponseBody != null) {
json[r'lastResponseBody'] = this.lastResponseBody;
} else {
json[r'lastResponseBody'] = null;
}
json[r'created'] = this.created.toUtc().toIso8601String();
json[r'updated'] = this.updated.toUtc().toIso8601String();
return json;
}