SerdesGenerator class
Constructors
- SerdesGenerator({bool shouldGenerateToJson = true, bool shouldGenerateFromJson = true, bool shouldGenerateToStringJson = true, bool shoudlGenerateFromStringJson = true})
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- shoudlGenerateFromStringJson → bool
-
final
- shouldGenerateFromJson → bool
-
final
- shouldGenerateToJson → bool
-
final
- shouldGenerateToStringJson → bool
-
final
Methods
-
generateClass(
String originalClassName, String name, Iterable< Field> fields, [Iterable<FieldType> interfaces = const []]) → String -
generateClassFields(
Iterable< Field> fields) → String -
generateConstructor(
String name, Iterable< Field> fields) → String -
generateEnum(
String enumName, Iterable< Field> fields) → String -
generateFromJson(
String name, Iterable< Field> fields) → String -
generateFromJsonString(
String name) → String -
generateToJson(
String name, Iterable< Field> fields) → String -
generateToJsonString(
) → String -
generateTypeAdapters(
Iterable< Field> fields) → String -
generateUnions(
Iterable< Field> fields) → String -
generateValidators(
Iterable< Field> fields) → String -
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