ListingDataModel.fromJson constructor Null safety

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

Implementation

factory ListingDataModel.fromJson(Map<String, dynamic> json) =>
    ListingDataModel(
      length: json["length"],
      items: json["items"] == null
          ? null
          : List<ListingItem>.from(
              json["items"].map((x) => ListingItem.fromJson(x))),
    );