Transaction.fromMap constructor
Transaction.fromMap(
- Map<String, dynamic> json
)
Implementation
factory Transaction.fromMap(Map<String, dynamic> json) => Transaction(
merchantReference: json["merchant_reference"] == null ? null : json["merchant_reference"],
preferredAgent: json["preferred_agent"] == null ? null : json["preferred_agent"],
productDescription: json["product_description"] == null ? null : json["product_description"],
amount: json["amount"] == null ? null : json["amount"],
currencyCode: json["currency_code"] == null ? null : json["currency_code"],
paymentInfo: json["payment_info"] == null ? null : json["payment_info"],
paymentExpiry: json["payment_expiry"] == null ? null : json["payment_expiry"],
userDefined1: json["user_defined_1"] == null ? null : json["user_defined_1"],
userDefined2: json["user_defined_2"] == null ? null : json["user_defined_2"],
userDefined3: json["user_defined_3"] == null ? null : json["user_defined_3"],
userDefined4: json["user_defined_4"] == null ? null : json["user_defined_4"],
userDefined5: json["user_defined_5"] == null ? null : json["user_defined_5"],
);