UserType<T> class
Represents a user-defined type for JSON serialization.
This class allows you to register custom types with the JSON serializer. The type is defined by a constructor function that will be called during deserialization to create instances of the type.
@typeparam T The type that this UserType represents.
Properties
- function → Function
-
The constructor function for this user type.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- info → FunctionInfo
-
The parsed function information containing parameter details.
final
- name → String
-
The name of the generic type.
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
createList(
) → List< T> -
Creates an empty list of type
T.inherited -
createListOfMapOfT(
) → List< Map< String, T> > -
Creates an empty list of maps with keys of type String and values of type
T.inherited -
createMapOfListOfNullableT(
) → Map< String, List< T> ?> -
Creates an empty map with keys of type String and nullable values of type List of
T.inherited -
createMapOfListOfT(
) → Map< String, List< T> > -
Creates an empty map with keys of type String and values of type List of
T.inherited -
createMapOfNullableT(
) → Map< String, T?> -
Creates an empty map with keys of type String and nullable values of type
T.inherited -
createMapOfT(
) → Map< String, T> -
Creates an empty map with keys of type String and values of type
T.inherited -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited