toJson method

Map<String, dynamic> toJson()

Implementation

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