Data.fromMap constructor

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

Implementation

factory Data.fromMap(Map<String, dynamic> json) => Data(
  reference: json["reference"],
  publicKey: json["public_key"],
  amount: json["amount"],
  description: json["description"],
  orderId: json["order_id"],
  sbRedirectLink: json["sb_redirect_link"],
  email: json["email"],
  paymentLink: json["payment_link"],
  gateway: json["gateway"],
  status: json["status"],
);