getSocialReportsCategories method
- String country = '',
Gets the list of social report categories.
Parameters
- IN country The country ISO code for which the list is retrieved. Use empty string for a 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();
}