toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
  if (this.walletId != null) {
    json[r'walletId'] = this.walletId;
  } else {
    json[r'walletId'] = null;
  }
  if (this.balance != null) {
    json[r'balance'] = this.balance;
  } else {
    json[r'balance'] = null;
  }
  if (this.lowBalanceThreshold != null) {
    json[r'lowBalanceThreshold'] = this.lowBalanceThreshold;
  } else {
    json[r'lowBalanceThreshold'] = null;
  }
  if (this.thresholdPercentage != null) {
    json[r'thresholdPercentage'] = this.thresholdPercentage;
  } else {
    json[r'thresholdPercentage'] = null;
  }
  if (this.currency != null) {
    json[r'currency'] = this.currency;
  } else {
    json[r'currency'] = null;
  }
  return json;
}