toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
  if (this.balanceUsedCents != null) {
    json[r'balanceUsedCents'] = this.balanceUsedCents;
  } else {
    json[r'balanceUsedCents'] = null;
  }
  if (this.cardChargedCents != null) {
    json[r'cardChargedCents'] = this.cardChargedCents;
  } else {
    json[r'cardChargedCents'] = null;
  }
  if (this.creditUsedCents != null) {
    json[r'creditUsedCents'] = this.creditUsedCents;
  } else {
    json[r'creditUsedCents'] = null;
  }
  if (this.invoice != null) {
    json[r'invoice'] = this.invoice;
  } else {
    json[r'invoice'] = null;
  }
  if (this.paid != null) {
    json[r'paid'] = this.paid;
  } else {
    json[r'paid'] = null;
  }
  if (this.processorRef != null) {
    json[r'processorRef'] = this.processorRef;
  } else {
    json[r'processorRef'] = null;
  }
  if (this.reason != null) {
    json[r'reason'] = this.reason;
  } else {
    json[r'reason'] = null;
  }
  return json;
}