BaseEntityDataModel class

A base data model class that represents a data entity with an optional ID.

Implementers

Constructors

BaseEntityDataModel({String? id, bool? isArchived, DateTime? createdAt, DateTime? updatedAt})
Constructs a BaseEntityDataModel instance with an optional id.
BaseEntityDataModel.fromJson(Map<String, dynamic> json, String? id)
Creates a BaseEntityDataModel instance from a JSON map and an optional id.
factory

Properties

createdAt ↔ DateTime?
getter/setter pair
hashCode → int
The hash code for this object.
no setterinherited
id ↔ String?
The unique identifier for the data entity.
getter/setter pair
isArchived ↔ bool?
getter/setter pair
map ↔ Map<String, dynamic>?
A map to hold additional data for the model.
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
updatedAt ↔ DateTime?
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
Converts the BaseEntityDataModel instance to a JSON map.
toString() → String
A string representation of this object.
inherited

Operators

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