Thanks to visit codestin.com Credit goes to pub.dev
Map<String, String> get attributes => node.attributes.map((key, value) { return MapEntry(key.toString(), value); });