toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
    json[r'duration'] = this.duration;
  if (this.next != null) {
    json[r'next'] = this.next;
  } else {
    json[r'next'] = null;
  }
  if (this.prev != null) {
    json[r'prev'] = this.prev;
  } else {
    json[r'prev'] = null;
  }
    json[r'reports'] = this.reports;
  return json;
}