Map<String, dynamic> toJson() => { "wallet_id": walletId, "type": type, "d": d?.toJson() ?? {}, "wallet_type": walletType };