NewsDto class

News of a store.

Inheritance

Constructors

NewsDto({required String id, String? title, String? text, String? imageResource, DateTime? activatedAt, List<NewsStoreDto>? stores})
NewsDto.fromJson(Map<String, dynamic> json)
factory

Properties

activatedAt DateTime?
DateTime where news has been activated.
read / write
hashCode int
The hash code for this object.
read-onlyinherited
id String
Id of the news.
read / write
imageResource String?
ImageResource of the news.
read / write
props List<Object?>
The list of properties that will be used to determine whether two instances are equal.
read-onlyoverride
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited
stores List<NewsStoreDto>?
Stores for which the news applies.
read / write
stringify bool?
If set to true, the toString method will be overridden to output this instance's props.
read-onlyinherited
text String?
Text of the news.
read / write
title String?
Title of the news.
read / write

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
toString() String
A string representation of this object.
inherited

Operators

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