toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final Map<String, dynamic> data = new Map<String, dynamic>();
  data['download_id'] = this.downloadId;
  data['download_url'] = this.downloadUrl;
  data['product_id'] = this.productId;
  data['product_name'] = this.productName;
  data['download_name'] = this.downloadName;
  data['order_id'] = this.orderId;
  data['order_key'] = this.orderKey;
  data['downloads_remaining'] = this.downloadsRemaining;
  data['access_expires'] = this.accessExpires;
  data['access_expires_gmt'] = this.accessExpiresGmt;
  if (this.file != null) {
    data['file'] = this.file!.toJson();
  }
  return data;
}