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})
const
factory
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
tags → List<String>?
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

A switch-like method, using callbacks.
mapOrNull<TResult extends Object?>(TResult? $default(_Announcement value)?) → TResult?

Available on Announcement, provided by the AnnouncementPatterns extension

A variant of map that fallback to returning null.
maybeMap<TResult extends Object?>(TResult $default(_Announcement value)?, {required TResult orElse()}) → TResult

Available on Announcement, provided by the AnnouncementPatterns extension

A variant of map that fallback to returning orElse.
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 of when that fallback to an orElse callback.
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

A switch-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 of when that fallback to returning null

Operators

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