getSocialReportsCategory method
Get the overlay category by id
Parameters
- IN categId The category id
- IN country The country ISO code for which the list is retrieved. Use empty String for generic country
Returns
- The OverlayCategory if category is found
- null if the category is not found
Throws
- An exception if it fails
Implementation
OverlayCategory? getSocialReportsCategory(
final int categId, {
final String country = '',
}) {
final OperationResult result = objectMethod(
pointerId,
'SocialReportsOverlayInfo',
'getSocialReportsCategory',
args: <String, dynamic>{'categId': categId, 'country': country},
);
if (result['result']['uid'] == 0) {
return null;
}
return OverlayCategory.fromJson(result['result']);
}