toJson method

Map<String, dynamic> toJson()

Implementation

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