ULicencePlateDetailResponse.fromMap constructor
ULicencePlateDetailResponse.fromMap(
- Map<String, dynamic> json
)
Implementation
factory ULicencePlateDetailResponse.fromMap(Map<String, dynamic> json) => ULicencePlateDetailResponse(
status: json["status"],
tracePlate: json["tracePlate"],
items: json["items"] == null ? <ULicencePlateHistoryItem>[] : List<ULicencePlateHistoryItem>.from(json["items"]!.map((dynamic x) => ULicencePlateHistoryItem.fromMap(x))),
isCached: json["isCached"] ?? false,
cachedAt: json["cachedAt"] == null ? null : DateTime.tryParse(json["cachedAt"]),
cacheExpiresAt: json["cacheExpiresAt"] == null ? null : DateTime.tryParse(json["cacheExpiresAt"]),
);