NoticeModel class
The NoticeModel
class represents a notice item.
It contains information such as the notice ID, title, description, date, and an optional file.
Constructors
- NoticeModel({required int id, required String title, String? description, required String date, String? file})
-
Creates a new instance of the
NoticeModel
class.const -
NoticeModel.fromJson(Map<
String, dynamic> json) -
Creates a new instance of the
NoticeModel
class from a JSON map.factory
Properties
- date → String
-
The date of the notice.
final
- description → String?
-
The description of the notice.
final
- file → String?
-
The optional file associated with the notice.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → int
-
The unique identifier of the notice.
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
, thetoString
method will be overridden to output this instance'sprops
.no setterinherited - title → String
-
The title of the notice.
final
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