ModelEntity class

Constructors

ModelEntity({required ID id, required String name, required String? description, required List<ModelFieldEntity> fields, required List<WorkflowEntity> methods})
const

Properties

description → String?
final
fields → List<ModelFieldEntity>
final
hashCode → int
The hash code for this object.
no setterinherited
id → ID
final
methods → List<WorkflowEntity>
final
name → ID
final
props → List<Object?>
The list of properties that will be used to determine whether two instances are equal.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
stringify → bool?
If set to true, the toString method will be overridden to output this instance's props.
no setterinherited

Methods

convertModelToJson(Map<String, ModelEntity> models) → Map<String, dynamic>
copyWith({ID? id, String? name, String? description, List<ModelFieldEntity>? fields, List<WorkflowEntity>? methods}) → ModelEntity
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
retrieveModelFromJson(dynamic json, Map<String, ModelEntity> models) → Future<ModelEntity>
retrieveModelFromListJson(List json, Map<String, ModelEntity> models) → Future<List<ModelEntity>>
retrieveValueByFieldName(String name) → dynamic
toJson() → Map<String, dynamic>
toString() → ID
A string representation of this object.
inherited

Operators

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

Static Methods

fromJson(Map<String, dynamic> json, ActionMapper actionMapper) → ModelEntity
generateModelFromJson(dynamic json, dynamic onModelGenerated(ModelEntity model)) → ModelEntity
generateVariableNameFromJsonKey(String key) → String