fromJson method
Converts JSON into a Vplan
.
Implementation
static Vplan fromJson(dynamic json) {
return Vplan(
WeekdayConverter.fromJson(json['weekday']),
VplanDate.fromJson(json['date']),
DateTime.fromMillisecondsSinceEpoch(json['changed']),
(json['days_off'] as List).map((dayOff) => DateTime.fromMillisecondsSinceEpoch(dayOff)),
(json['changes'] as List).map((change) => Change.fromJson(change)),
json['info'] as List
);
}