getSocialReportsCategories method
- String country = '',
Get categories list.
Parameters
- IN country The country ISO code for which the list is retrieved. Use empty String for generic country
Returns
- The list of categories
Throws
- An exception if it fails.
Implementation
List<SocialReportsOverlayCategory> getSocialReportsCategories({
final String country = '',
}) {
final OperationResult operationResult = objectMethod(
pointerId,
'SocialReportsOverlayInfo',
'getSocialReportsCategories',
args: country,
);
final List<dynamic> list = operationResult['result'];
return list
.map(
(final dynamic categoryJson) =>
SocialReportsOverlayCategory.fromJson(categoryJson),
)
.toList();
}