Resource constructor
Implementation
Resource(List<api.Attribute> attributes, [this.droppedAttributesCount])
: _attributes = Attributes.empty() {
for (final attribute in attributes) {
if (attribute.value is! String) {
throw ArgumentError('Attributes value must be String.');
}
}
_attributes.addAll(attributes);
}