MethodTypeConv class

Serializes MethodType to and from json

Can be used as annotation for json_serializable classes

@MethodTypeConv()
final MethodType myEnum;
Inheritance

Constructors

MethodTypeConv({MethodType? defaultValue})
Serializes MethodType to and from json
const

Properties

defaultValue MethodType?
the value to be used when no match is found
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

fromJson(Object json) MethodType
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson(MethodType object) Object
override
toString() String
A string representation of this object.
inherited

Operators

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

Constants

nullable → const _MethodTypeNullableConv