HydraMessages class

Represents a HydraMessages object as is, directly provided from mailtm API

Annotations
  • @freezed

Constructors

HydraMessages({@JsonKey(name: 'hydra:member') required List<Message> messages, @JsonKey(name: 'hydra:totalItems') required int totalItems})
HydraMessages constructor. MUST NOT be used manually Use MailTm and AuthorizedUser
const
factory
HydraMessages.fromJson(Map<String, Object?> json)
HydraMessages jsonizer. Allows freezed to add a from/toJson
factory

Properties

copyWith → $HydraMessagesCopyWith<HydraMessages>
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
messages List<Message>
The messages in hydra:member
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
totalItems int
The total number of items.
no setterinherited

Methods

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

Operators

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

Constants

hydraMax → const int
The max number of items in messages