DartObjectExtensions extension
Methods
-
getBoolValue(String name)
→ bool?
-
Returns the value of the field with the given
name
as a bool or null
if the field is not a bool.
-
getDoubleValue(String name)
→ double?
-
Returns the value of the field with the given
name
as a double or null
if the field is not a double.
-
getIntValue(String name)
→ int?
-
Returns the value of the field with the given
name
as an int or null
if the field is not an int.
-
getStringValue(String name)
→ String?
-
Returns the value of the field with the given
name
as a String or null
if the field is not a String.
-
toFieldRenameValue()
→ FieldRename?
-
Returns a
FieldRename
corresponding to the value of the object being represented or null
if this object is not of type FieldRename
or the value of the object being represented is null
.
-
toXmlAttributeValue()
→ XmlAttribute?
-
Returns an
XmlAttribute
corresponding to the value of the object being represented or null
if this object is not of type XmlAttribute
.
-
toXmlCDATAValue()
→ XmlCDATA?
-
Returns an
XmlCDATA
corresponding to the value of the object being represented or null
if this object is not of type XmlCDATA
.
-
toXmlElementValue()
→ XmlElement?
-
Returns an
XmlElement
corresponding to the value of the object being represented or null
if this object is not of type XmlElement
.
-
toXmlEnumValue()
→ XmlEnum?
-
Returns an
XmlEnum
corresponding to the value of the object being represented or null
if this object is not of type XmlEnum
.
-
toXmlRootElementValue()
→ XmlRootElement?
-
Returns an
XmlRootElement
corresponding to the value of the object being represented or null
if this object is not of type XmlRootElement
.
-
toXmlSerializableValue()
→ XmlSerializable?
-
Returns an
XmlSerializable
corresponding to the value of the object being represented or null
if this object is not of type XmlSerializable
.
-
toXmlTextValue()
→ XmlText?
-
Returns an
XmlText
corresponding to the value of the object being represented or null
if this object is not of type XmlText
.
-
toXmlValueValue()
→ XmlValue?
-
Returns an
XmlValue
corresponding to the value of the object being represented or null
if this object is not of type XmlValue
.