isCallingData static method

dynamic isCallingData(
  1. String data
)

Implementation

static isCallingData(String data) {
  try {
    Map<String, dynamic> customMap = jsonDecode(data);

    if (customMap.containsKey('businessID') && customMap['businessID'] == 1) {
      return true;
    }
  } catch (e) {
    outputLogger.i("isCallingData json parse error");
    return false;
  }
  return false;
}