QueryData.fromJson constructor

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

Implementation

factory QueryData.fromJson(Map<String, dynamic> json) {
  return QueryData(
    merchantId: json['merchantId'],
    prepayId: json['prepayId'],
    transactionId: json['transactionId'],
    merchantTradeNo: json['merchantTradeNo'],
    status: json['status'],
    currency: json['currency'],
    orderAmount: json['orderAmount'],
    openUserId: json['openUserId'],
    passThroughInfo: json['passThroughInfo'],
    transactTime: json['transactTime'],
    createTime: json['createTime'],
    paymentInfo: json['paymentInfo'] == null
        ? null
        : PaymentInfo.fromJson(json['paymentInfo']),
  );
}