canParse static method

bool canParse(
  1. Object? obj
)
override

Implementation

static bool canParse(Object? obj) {
  if (obj is! Map<String, dynamic>) {
    return false;
  }
  if ((obj['exceptionOptions'] is! List ||
      (obj['exceptionOptions']
          .any((item) => !ExceptionOptions.canParse(item))))) {
    return false;
  }
  if ((obj['filterOptions'] is! List ||
      (obj['filterOptions']
          .any((item) => !ExceptionFilterOptions.canParse(item))))) {
    return false;
  }
  if ((obj['filters'] is! List ||
      (obj['filters'].any((item) => item is! String)))) {
    return false;
  }
  return RequestArguments.canParse(obj);
}