StoreModel.fromJson constructor Null safety

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

Implementation

factory StoreModel.fromJson(Map<String, dynamic> json) => StoreModel(
      id: json["id"],
      name: json["name"],
      latitude:
          json["latitude"] == null ? null : json["latitude"]!.toDouble(),
      longitude:
          json["longitude"] == null ? null : json["longitude"]!.toDouble(),
      description: json["description"],
      mobile: json["mobile"],
      telephone: json["telephone"],
    );