Generate class

Inheritance

Constructors

Generate({String? fallbackDartSdkPath, Set<String>? templateFilePaths, Set<String>? rootPaths, Set<String>? subPaths, Set<String>? pathPatterns, String? outputDirPath, List<Model>? annotations})
const
Generate.c2({String? fallbackDartSdkPath, Set<String>? templateFilePaths, Set<String>? rootPaths, Set<String>? subPaths, Set<String>? pathPatterns, String? outputDirPath, List<Model>? annotations})
const
Generate.c3({String? fallbackDartSdkPath, Set<String>? templateFilePaths, Set<String>? rootPaths, Set<String>? subPaths, Set<String>? pathPatterns, String? outputDirPath, List<Model>? annotations})
factory
Generate.from(BaseModel? other)
factory
Generate.fromJson(Map<String, dynamic>? otherData)
factory
Generate.fromJsonString(String source)
factory
Generate.fromUri(Uri? uri)
factory
Generate.of(Generate other)
factory

Properties

$className String
The class name of the model as a string.
no setteroverride
annotations List<Model>?
final
annotationsField List<Model>?
no setter
data Map<String, dynamic>
no setterinherited
fallbackDartSdkPath String?
final
fallbackDartSdkPathField String?
no setter
hashCode int
The hash code for this object.
no setterinherited
outputDirPath String?
final
outputDirPathField String?
no setter
pathPatterns Set<String>?
final
pathPatternsField Set<String>?
no setter
ref DataRefModel?
no setterinherited
rootPaths Set<String>?
final
rootPathsField Set<String>?
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
subPaths Set<String>?
final
subPathsField Set<String>?
no setter
templateFilePaths Set<String>?
final
templateFilePathsField Set<String>?
no setter

Methods

copyWith(BaseModel? other) Generate
Returns a new copy of the BaseModel with the fields updated from the other BaseModel.
override
equals(dynamic other) bool
Compares the BaseModel with another BaseModel using the DeepCollectionEquality and returns true if they are equal.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
sortedJson({dynamic defaultValue, bool includeNulls = false}) Map<String, dynamic>
Returns a Json i.e. Map<String, dynamic> representation of the BaseModel, with the keys sorted alphabetically.
inherited
toJson({dynamic defaultValue, bool includeNulls = false}) Map<String, dynamic>
Returns a Json i.e. Map<String, dynamic> representation of the BaseModel.
override
toJsonString() String
Returns a JSON string representation of the BaseModel.
inherited
toString() String
A string representation of this object.
inherited
toUrl() Uri
Converts the current BaseModel to a Uri that can be used as a distinct identifier. The model must not be too large to avoid exceeding the maximum length of a URL.
inherited

Operators

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

Static Methods

fromJsonOrNull(Map<String, dynamic>? otherData) Generate?
fromJsonStringOrNull(String? source) Generate?
override
fromOrNull(BaseModel? other) Generate?
fromUriOrNull(Uri? uri) Generate?
ofOrNull(Generate? other) Generate?

Constants

CLASS_NAME → const String