CustomerDownload.fromJson constructor

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

Implementation

CustomerDownload.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 ? File.fromJson(json['file']) : null;
  links = json['_links'] != null ? Links.fromJson(json['_links']) : null;
}