GetReservationCoverageResponse.fromJson constructor
GetReservationCoverageResponse.fromJson(
- Map<String, dynamic> json
)
Implementation
factory GetReservationCoverageResponse.fromJson(Map<String, dynamic> json) {
return GetReservationCoverageResponse(
coveragesByTime: (json['CoveragesByTime'] as List)
.whereNotNull()
.map((e) => CoverageByTime.fromJson(e as Map<String, dynamic>))
.toList(),
nextPageToken: json['NextPageToken'] as String?,
total: json['Total'] != null
? Coverage.fromJson(json['Total'] as Map<String, dynamic>)
: null,
);
}