Map<String, dynamic> toJson() { return { 'balance': { 'value': this.value, 'unit': this.unit.toString(), } }; }