CustomerSummaryModel.fromJson constructor Null safety
Implementation
factory CustomerSummaryModel.fromJson(Map<String, dynamic> json) {
final data = CustomerSummaryModel(
loyaltyPoints: json["loyaltyPoints"],
loyaltyPointsEnabled: json["loyaltyPointsEnabled"],
loyaltyProgramName: json["loyaltyProgramName"],
loyaltyProgramId: json["loyaltyProgramId"],
wishListCount: json["wishListCount"],
ordersThisMonth: json["ordersThisMonth"]);
return data;
}