PriceRange.fromJson constructor Null safety

PriceRange.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory PriceRange.fromJson(Map<String, dynamic> json) => PriceRange(
      minPrice:
          json["minPrice"] == null ? null : json["minPrice"]!.toDouble(),
      maxPrice:
          json["maxPrice"] == null ? null : json["maxPrice"]!.toDouble(),
    );