CardModel class

Model app table 'cards'

Annotations

Constructors

CardModel({required int? id, required int userId, required String image, required String name, required String desc, required DateTime updateAt, required DateTime createAt})
CardModel.create({required int userId, required String image, required String name, required String desc, required DateTime updateAt, required DateTime createAt})
CardModel.fromJson(Map<String, dynamic> json)
factory

Properties

createAt DateTime
final
desc String
final
hashCode int
The hash code for this object.
no setterinherited
id int?
final
image String
final
isNew bool
no setter
name String
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
updateAt DateTime
final
userId int
final

Methods

copy([Map<String, dynamic>? json]) CardModel
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toCompanion() CardsCompanion
toJson() Map<String, dynamic>
toString() String
A string representation of this object.
override

Operators

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