getSocialReportsCategory method
Gets 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 a generic country.
Returns
- The OverlayCategory if the 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']);
}