UtilizationByTime.fromJson constructor
UtilizationByTime.fromJson(
- Map<String, dynamic> json
)
Implementation
factory UtilizationByTime.fromJson(Map<String, dynamic> json) {
return UtilizationByTime(
groups: (json['Groups'] as List?)
?.whereNotNull()
.map((e) =>
ReservationUtilizationGroup.fromJson(e as Map<String, dynamic>))
.toList(),
timePeriod: json['TimePeriod'] != null
? DateInterval.fromJson(json['TimePeriod'] as Map<String, dynamic>)
: null,
total: json['Total'] != null
? ReservationAggregates.fromJson(
json['Total'] as Map<String, dynamic>)
: null,
);
}