matches static method

bool matches(
  1. dynamic json
)

Implementation

static bool matches(dynamic json) {
  if (isMapOfStringKeys(json)) {
    var map = (json as Map).cast<String, dynamic>();

    return map.containsKey('PAGE') &&
        map.containsKey('ELEMENTS') &&
        map.containsKey('SIZE') &&
        map.containsKey('ELEMENTS_OFFSET') &&
        map.containsKey('ELEMENTS_PER_PAGE');
  }
  return false;
}