toJson method
Implementation
Map<String, dynamic> toJson() {
final detail = this.detail;
final detailType = this.detailType;
final eventBusName = this.eventBusName;
final resources = this.resources;
final source = this.source;
final time = this.time;
return {
if (detail != null) 'Detail': detail,
if (detailType != null) 'DetailType': detailType,
if (eventBusName != null) 'EventBusName': eventBusName,
if (resources != null) 'Resources': resources,
if (source != null) 'Source': source,
if (time != null) 'Time': unixTimestampToJson(time),
};
}