toMap method

Map<String, dynamic> toMap()

Implementation

Map<String, dynamic> toMap() => <String, dynamic>{
  "totalPrice": totalPrice,
  "items": items == null ? <dynamic>[] : List<dynamic>.from(items!.map((UFreewayTollsItem x) => x.toMap())),
  "isCached": isCached,
  "cachedAt": cachedAt?.toIso8601String(),
  "cacheExpiresAt": cacheExpiresAt?.toIso8601String(),
};