isEmpty static method

bool isEmpty(
  1. Map<String, dynamic> json,
  2. PropertiesTypes type
)

Returns true if the properties are empty.

Implementation

static bool isEmpty(Map<String, dynamic> json, PropertiesTypes type) {
  if (json[propertyTypeToString(type)] != null) {
    return json[propertyTypeToString(type)]!.isEmpty;
  }
  return true;
}