xmlAttributeGetterGeneratorFactory function
Creates a GetterGenerator from a FieldElement
that has an attribute of the form @XmlAttribute()
.
Implementation
GetterGenerator xmlAttributeGetterGeneratorFactory(FieldElement element) {
final xmlAttribute = element.getXmlAttribute()!.toXmlAttributeValue()!;
return XmlAttributeGetterGenerator(
xmlAttribute.name ?? element.getEncodedFieldName(),
namespace: xmlAttribute.namespace,
isNullable: element.type.isNullable,
);
}