xml_serializable library Null safety

Provides serialization classes to use with xml_annotation.

Classes

BoolSerializerGenerator
BuilderGenerator
Defines methods for generating builders for representations of types for example:
ConstructorGenerator
Defines methods for generating constructors for representations of types for example:
DateTimeSerializerGenerator
DoubleSerializerGenerator
DurationSerializerGenerator
DynamicSerializerGenerator
EnumSerializerGenerator
GetterGenerator
Defines methods for generating getters for representations of types for example:
IntSerializerGenerator
IterableBuilderGenerator
IterableConstructorGenerator
IterableSerializerGenerator
ListSerializerGenerator
NullableBoolSerializerGenerator
NullableDateTimeSerializerGenerator
NullableDoubleSerializerGenerator
NullableDurationSerializerGenerator
NullableEnumSerializerGenerator
NullableIntSerializerGenerator
NullableIterableBuilderGenerator
NullableIterableConstructorGenerator
NullableIterableSerializerGenerator
NullableListSerializerGenerator
NullableNumSerializerGenerator
NullableSetSerializerGenerator
NullableUriSerializerGenerator
NullableXmlAttributeBuilderGenerator
NullableXmlAttributeConstructorGenerator
NullableXmlAttributeGetterGenerator
NullableXmlRootElementBuilderGenerator
NullableXmlRootElementConstructorGenerator
NullableXmlSerializableXmlElementBuilderGenerator
NullableXmlSerializableXmlElementConstructorGenerator
NullableXmlSerializableXmlElementGetterGenerator
NullableXmlSerializableXmlElementIterableGetterGenerator
NullableXmlTextBuilderGenerator
NullableXmlTextConstructorGenerator
NullableXmlTextGetterGenerator
NullableXmlTextXmlElementBuilderGenerator
NullableXmlTextXmlElementConstructorGenerator
NullableXmlTextXmlElementGetterGenerator
NullableXmlTextXmlElementIterableGetterGenerator
NumSerializerGenerator
SerializerGenerator
Defines methods for generating serializers and deserializers for types for example:
SetSerializerGenerator
StringableSerializerGenerator
Unifies the implementations for types that are able to be converted to/from a String using a toString() function and a parse constructor respectively.
StringSerializerGenerator
UriSerializerGenerator
XmlAttributeBuilderGenerator
XmlAttributeConstructorGenerator
XmlAttributeGetterGenerator
XmlEnumGenerator
XmlRootElementBuilderGenerator
XmlRootElementConstructorGenerator
XmlSerializableGenerator
XmlSerializableXmlElementBuilderGenerator
XmlSerializableXmlElementConstructorGenerator
XmlSerializableXmlElementGetterGenerator
XmlSerializableXmlElementIterableGetterGenerator
XmlTextBuilderGenerator
XmlTextConstructorGenerator
XmlTextGetterGenerator
XmlTextXmlElementBuilderGenerator
XmlTextXmlElementConstructorGenerator
XmlTextXmlElementGetterGenerator
XmlTextXmlElementIterableGetterGenerator

Extensions

ConstantReaderExtensions
DartObjectExtensions
DartTypeExtensions
ElementAnnotationExtensions
ElementExtensions
FieldElementExtensions

Constants

xmlAttributeTypeChecker → const TypeChecker
A TypeChecker for XmlAttribute.
TypeChecker.fromRuntime(XmlAttribute)
xmlElementTypeChecker → const TypeChecker
A TypeChecker for XmlElement.
TypeChecker.fromRuntime(XmlElement)
xmlRootElementTypeChecker → const TypeChecker
A TypeChecker for XmlRootElement.
TypeChecker.fromRuntime(XmlRootElement)
xmlSerializableTypeChecker → const TypeChecker
A TypeChecker for XmlSerializable.
TypeChecker.fromRuntime(XmlSerializable)
xmlTextTypeChecker → const TypeChecker
A TypeChecker for XmlText.
TypeChecker.fromRuntime(XmlText)

Functions

builderGeneratorFactory(Element element) BuilderGenerator
Creates a BuilderGenerator from an Element that has an annotation of the form @XmlAttribute(), @XmlElement(), @XmlRootElement(), or @XmlText().
constructorGeneratorFactory(Element element) ConstructorGenerator
Creates a ConstructorGenerator from an Element that has an attribute of the form @XmlAttribute(), @XmlElement(), @XmlRootElement(), or @XmlText().
getterGeneratorFactory(Element element) GetterGenerator
Creates a GetterGenerator from an Element that has an attribute of the form @XmlAttribute(), @XmlElement(), or @XmlText().
serializerGeneratorFactory(DartType type) SerializerGenerator
Creates a SerializerGenerator from a DartType that represents a bool, DateTime, double, Duration, dynamic, enum, int, Iterable, List, num, Set, String, or Uri.
xmlAttributeBuilderGeneratorFactory(FieldElement element) BuilderGenerator
Creates a BuilderGenerator from a FieldElement that has an annotation of the form @XmlAttribute().
xmlAttributeConstructorGeneratorFactory(FieldElement element) ConstructorGenerator
Creates a ConstructorGenerator from a FieldElement that has an attribute of the form @XmlAttribute().
xmlAttributeGetterGeneratorFactory(FieldElement element) GetterGenerator
Creates a GetterGenerator from a FieldElement that has an attribute of the form @XmlAttribute().
xmlElementBuilderGeneratorFactory(FieldElement element) BuilderGenerator
Creates a BuilderGenerator from a FieldElement that has an annotation of the form @XmlElement().
xmlElementConstructorGeneratorFactory(FieldElement element) ConstructorGenerator
Creates a ConstructorGenerator from a FieldElement that has an attribute of the form @XmlElement().
xmlElementGetterGeneratorFactory(FieldElement element) GetterGenerator
Creates a GetterGenerator from a FieldElement that has an attribute of the form @XmlElement().
xmlRootElementBuilderGeneratorFactory(ClassElement element) BuilderGenerator
Creates a BuilderGenerator from a ClassElement that has an annotation of the form @XmlRootElement().
xmlRootElementConstructorGeneratorFactory(ClassElement element) ConstructorGenerator
Creates a ConstructorGenerator from a ClassElement that has an attribute of the form @XmlRootElement().

Typedefs

BuilderGeneratorFactory = BuilderGenerator Function(Element element)
Creates a BuilderGenerator from an Element.
ConstructorGeneratorFactory = ConstructorGenerator Function(Element element)
Creates a ConstructorGenerator from an Element.
GetterGeneratorFactory = GetterGenerator Function(Element element)
Creates a GetterGenerator from an Element.
SerializerGeneratorFactory = SerializerGenerator Function(DartType type)
Creates a SerializerGenerator from a DartType.