toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
  if (this.amountDueCents != null) {
    json[r'amountDueCents'] = this.amountDueCents;
  } else {
    json[r'amountDueCents'] = null;
  }
  if (this.amountPaidCents != null) {
    json[r'amountPaidCents'] = this.amountPaidCents;
  } else {
    json[r'amountPaidCents'] = null;
  }
  if (this.createdAt != null) {
    json[r'createdAt'] = this.createdAt;
  } else {
    json[r'createdAt'] = null;
  }
  if (this.currency != null) {
    json[r'currency'] = this.currency;
  } else {
    json[r'currency'] = null;
  }
  if (this.customerEmail != null) {
    json[r'customerEmail'] = this.customerEmail;
  } else {
    json[r'customerEmail'] = null;
  }
  if (this.id != null) {
    json[r'id'] = this.id;
  } else {
    json[r'id'] = null;
  }
    json[r'lines'] = this.lines;
  if (this.number != null) {
    json[r'number'] = this.number;
  } else {
    json[r'number'] = null;
  }
  if (this.paymentRef != null) {
    json[r'paymentRef'] = this.paymentRef;
  } else {
    json[r'paymentRef'] = null;
  }
  if (this.status != null) {
    json[r'status'] = this.status;
  } else {
    json[r'status'] = null;
  }
  if (this.subtotalCents != null) {
    json[r'subtotalCents'] = this.subtotalCents;
  } else {
    json[r'subtotalCents'] = null;
  }
  if (this.userId != null) {
    json[r'userId'] = this.userId;
  } else {
    json[r'userId'] = null;
  }
  return json;
}