FoulsModel.fromMap constructor

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

Implementation

factory FoulsModel.fromMap(Map<String, dynamic> json) => FoulsModel(
  id: json["id"],
  reason: json["reason"],
  orderId: json["order_id"],
  createdAt: json["created_at"] == null ? null : DateTime.parse(json["created_at"]).toLocal(),
);