GenerateModel class final

Constructors

GenerateModel({String? className, Set fields = const {('id', 'String?')}, bool shouldInherit = false, String? inheritanceConstructor, String keyStringCase = 'CAMEL_CASE'})
const

Properties

className String?
The name of the class to generate.
final
fields Set
Fields to use when generating the class, e.g. ('first_name', 'String?').
final
hashCode int
The hash code for this object.
no setterinherited
inheritanceConstructor String?
Specifies the named constructor of the annotated class to be used in the generated class, e.g. '', '_internal', etc.
final
keyStringCase String
The case to use for the key strings in the generated class.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
shouldInherit bool
Indicates if the generated class should inherit from the annotated class.
final

Methods

copyWith({String? className, Set<Record>? fields, Set<Record>? defaultFields, bool? shouldInherit, String? inheritanceConstructor, String? keyStringCase}) GenerateModel
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