ModelTemplate class

Template for model class code generation.

This class provides static methods for generating model classes with proper formatting and structure.

Constructors

ModelTemplate()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

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

Static Methods

generate({required String className, required List<String> importForeign, required List<String> constructor, required List<String> constructorAssign, required List<String> variables, required List<String> toMap, required List<String> fromMap, required List<String> fromMapWithJoin, required List<String> paramCopyWith, required List<String> valueCopyWith, required List<String> props}) String
Generates a model class.