fromJson static method

TransactionAttributes fromJson(
  1. Map<String, dynamic> json
)

Implementation

static TransactionAttributes fromJson(Map<String, dynamic> json) {
  return TransactionAttributes(
      transactionId: json['transactionId'] as String,
      affiliation: json['affiliation'] as String,
      couponCode: json['couponCode'] as String,
      shipping: json['shipping'] as double,
      tax: json['tax'] as double,
      revenue: json['revenue'] as double);
}