WooCustomerDownload.fromJson constructor

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

Implementation

WooCustomerDownload.fromJson(Map<String, dynamic> json) {
  downloadId = json['download_id'];
  downloadUrl = json['download_url'];
  productId = json['product_id'];
  productName = json['product_name'];
  downloadName = json['download_name'];
  orderId = json['order_id'];
  orderKey = json['order_key'];
  downloadsRemaining = json['downloads_remaining'];
  accessExpires = json['access_expires'];
  accessExpiresGmt = json['access_expires_gmt'];
  file = json['file'] != null ? new WooCustomerDownloadFile.fromJson(json['file']) : null;
}