Announcement class abstract
- Available extensions
- Annotations
-
- @freezed
Constructors
-
Announcement({required String title, int? id, int? nextId, int? lastId, required int weight, required String imgUrl, String? url, required String description, String? publishedTime, String? expireTime, String? applicant, @JsonKey.new(name: 'application_id') String? applicationId, bool? reviewStatus, String? reviewDescription, @JsonKey.new(name: 'tag') List<
String> ? tags, @JsonKey.new(includeToJson: false, includeFromJson: false) @Default.new(0) int randomWeight}) -
constfactory
- Announcement.empty()
-
factory
-
Announcement.fromJson(Map<
String, dynamic> json) -
factory
- Announcement.fromRawJson(String str)
-
factory
Properties
- applicant → String?
-
no setterinherited
- applicationId → String?
-
no setterinherited
-
copyWith
→ $AnnouncementCopyWith<
Announcement> -
Create a copy of Announcement
with the given fields replaced by the non-null parameter values.
no setterinherited
- description → String
-
no setterinherited
- expireTime → String?
-
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → int?
-
no setterinherited
- imgUrl → String
-
no setterinherited
- lastId → int?
-
no setterinherited
- nextId → int?
-
no setterinherited
- publishedTime → String?
-
no setterinherited
- randomWeight → int
-
no setterinherited
- reviewDescription → String?
-
no setterinherited
- reviewStatus → bool?
-
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
no setterinherited
- title → String
-
no setterinherited
- url → String?
-
no setterinherited
- weight → int
-
no setterinherited
Methods
-
map<
TResult extends Object?> (TResult $default(_Announcement value)) → TResult -
Available on Announcement, provided by the AnnouncementPatterns extension
Aswitch-like method, using callbacks. -
mapOrNull<
TResult extends Object?> (TResult? $default(_Announcement value)?) → TResult? -
Available on Announcement, provided by the AnnouncementPatterns extension
A variant ofmapthat fallback to returningnull. -
maybeMap<
TResult extends Object?> (TResult $default(_Announcement value)?, {required TResult orElse()}) → TResult -
Available on Announcement, provided by the AnnouncementPatterns extension
A variant ofmapthat fallback to returningorElse. -
maybeWhen<
TResult extends Object?> (TResult $default(String title, int? id, int? nextId, int? lastId, int weight, String imgUrl, String? url, String description, String? publishedTime, String? expireTime, String? applicant, String? applicationId, bool? reviewStatus, String? reviewDescription, List< String> ? tags, int randomWeight)?, {required TResult orElse()}) → TResult -
Available on Announcement, provided by the AnnouncementPatterns extension
A variant ofwhenthat fallback to anorElsecallback. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toAddApplicationJson(
String fcmToken) → Map< String, dynamic> -
toJson(
) → Map< String, dynamic> -
Serializes this Announcement to a JSON map.
inherited
-
toRawJson(
) → String -
toRawUpdateJson(
) → String -
toString(
) → String -
A string representation of this object.
inherited
-
toUpdateApplicationJson(
) → Map< String, dynamic> -
toUpdateJson(
) → Map< String, dynamic> -
when<
TResult extends Object?> (TResult $default(String title, int? id, int? nextId, int? lastId, int weight, String imgUrl, String? url, String description, String? publishedTime, String? expireTime, String? applicant, String? applicationId, bool? reviewStatus, String? reviewDescription, List< String> ? tags, int randomWeight)) → TResult -
Available on Announcement, provided by the AnnouncementPatterns extension
Aswitch-like method, using callbacks. -
whenOrNull<
TResult extends Object?> (TResult? $default(String title, int? id, int? nextId, int? lastId, int weight, String imgUrl, String? url, String description, String? publishedTime, String? expireTime, String? applicant, String? applicationId, bool? reviewStatus, String? reviewDescription, List< String> ? tags, int randomWeight)?) → TResult? -
Available on Announcement, provided by the AnnouncementPatterns extension
A variant ofwhenthat fallback to returningnull
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited