UnknownValueType class Null safety

A ValueType representing an unknown value.

This should be used in cases where a null value is encountered, and the type of the value cannot be determined without more sample data.

Inheritance
Available Extensions

Constructors

UnknownValueType({required bool optional, dynamic defaultValue})
const

Properties

dartTypeReference → Reference
read-onlyinherited
defaultValue → dynamic
finalinherited
fromJsonFunctionReference → Reference?
read-onlyinherited
hashCode → int
The hash code for this object.
read-onlyinherited
mandatoryFromJsonFunctionReference → Reference?
read-onlyinherited
mandatoryToJsonFunctionReference → Reference?
read-onlyinherited
name → String
read-onlyoverride
optional → bool
finalinherited
optionalFromJsonFunctionReference → Reference?
read-onlyinherited
optionalToJsonFunctionReference → Reference?
read-onlyinherited
runtimeType → Type
A representation of the runtime type of the object.
read-onlyinherited
toJsonFunctionReference → Reference?
read-onlyinherited

Methods

asOptional({bool optional = true}) → UnknownValueType
override
convertFromJson(dynamic value) → dynamic
inherited
convertToJson(dynamic value) → dynamic
inherited
mandatoryFromJson(dynamic value) → dynamic
inherited
mandatoryToJson(dynamic value) → dynamic
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
optionalFromJson(dynamic value) → dynamic
inherited
optionalToJson(dynamic value) → dynamic
inherited
toJson() → Map<String, dynamic>
inherited
toString() → String
A string representation of this object.
inherited
updateDartTypeReference(TypeReferenceBuilder b) → void
override

Operators

operator ==(Object other) → bool
The equality operator.
inherited