Announcement class

Inheritance
Implemented types
Annotations

Constructors

Announcement({required String id, required String content, Map<String, dynamic> additionalProperties = const {}})
const
Announcement.fromJson(Map<String, dynamic> json)
factory

Properties

additionalProperties → Map<String, dynamic>
finalinherited
content → String
final
hashCode → int
The hash code for this object.
no setterinherited
id → String
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, the toString method will be overridden to output this instance's props.
no setterinherited

Methods

copyAdditionalProperties({Object? additionalProperties = unset}) → Map<String, dynamic>
Returns a new Map<String, dynamic> with the merged additional properties.
inherited
copyWith({Object id = unset, Object content = unset, Object? additionalProperties = unset}) → Announcement
getAdditionalDateTime(String key) → DateTime?
Helper to get a DateTime from an additional property value.
inherited
getAdditionalEnum<T extends Enum>(String key, List<T> enumValues) → T?
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
safeGetAdditionalValue<T>(String key) → T?
Safely get an additional property value of type T.
inherited
toJson() → Map<String, dynamic>
Serializes the object to its JSON representation.
override
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited
operator [](String key) → dynamic
Syntactic sugar to access the additionalProperties values by subscripting directly. obj["layout"] == obj.additionalProperties["layout"]
inherited