SingleProductModel.fromMap constructor

SingleProductModel.fromMap(
  1. Map<String, dynamic> json
)

Implementation

factory SingleProductModel.fromMap(Map<String, dynamic> json) => SingleProductModel(
  status: json["status"],
  code: json["code"],
  message: json["message"],
  timestamp: json["timestamp"],
  data: json["data"] == null ? null : Data.fromMap(json["data"]),
);