ModelFieldValueConverter<T extends ModelFieldValue> class abstract

Use this when registering special classes in ModelFieldValue.

Create a new class that inherits from this abstract class and register it with ModelFieldValue.registerConverter when the application starts.

ModelFieldValueに特殊なクラスを登録する場合に利用します。

この抽象クラスを継承して新しいクラスを作り、アプリ起動時にModelFieldValue.registerConverterに登録を行ってください。

Implementers
Available Extensions
Annotations

Constructors

ModelFieldValueConverter()
Use this when registering special classes in ModelFieldValue.
const

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
type String
Type of class being handled.
no setter

Methods

check(Object? value) bool
Returns true if the given value type matches type.
fromJson(Map<String, Object?> map) → T
Converts map decoded from Json to T.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson(T value) Map<String, Object?>
Convert T values to Map that can be encoded in Json.
toString() String
A string representation of this object.
inherited

Operators

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