toJson method

dynamic toJson ()

Converts a Vplan to JSON.

Implementation

dynamic toJson() => {
  'weekday': WeekdayConverter.toJson(this.weekDay),
  'date': this.date.toJson(),
  'changed': this.changed.millisecondsSinceEpoch,
  'days_off': this.daysOff.map((dayOff) => dayOff.millisecondsSinceEpoch),
  'changes': this.changes.map((change) => change.toJson()),
  'info': this.info
};