toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
  if (this.type != null) {
    json[r'type'] = this.type;
  } else {
    json[r'type'] = null;
  }
  if (this.dueNow != null) {
    json[r'dueNow'] = this.dueNow;
  } else {
    json[r'dueNow'] = null;
  }
  if (this.dueLater != null) {
    json[r'dueLater'] = this.dueLater;
  } else {
    json[r'dueLater'] = null;
  }
  if (this.dueLaterAt != null) {
    json[r'dueLaterAt'] = this.dueLaterAt;
  } else {
    json[r'dueLaterAt'] = null;
  }
  return json;
}