Map<String, dynamic> toJson() { return { 'sub_account_address': subAccountAddress, 'currency': currency?.toJson(), 'exemption_type': exemptionType, }..removeWhere((key, value) => value == null); }