How to Get Field Name(Capability Name) from GetFilter Method of powerBi using JavaScript

We are creating Visuals using Power BI API Client(JavaScript).Once it is created I want to pre populate all selected Capabilities and filters in another view.I used Visual.getFilters() method to get all pre selected filters but in each item I am not getting the capability to which it belongs,Is there is any way to get capability name with each filter.
for example

I selected bellow properties for creating a visual

Visual Type = Funnel

Capabilities

1 Group = Group1

2 Values = value1

after saving this visual when we execute getFilters(),we are getting this two objects but it does not contains Capability names like Group/Values