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に登録を行ってください。
- Annotations
Constructors
- ModelFieldValueConverter()
-
Use this when registering special classes in ModelFieldValue.
const
Properties
Methods
-
check(
Object? value) → bool -
Returns
true
if the givenvalue
type matches type. -
fromJson(
Map< String, Object?> map) → T -
Converts
map
decoded from Json toT
. -
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