Map<String, String> get attributesAsString => hasEmptyAttributes ? <String, String>{} : _attributes! .map(((key, value) => MapEntry<String, String>(key, value.value!)));