MessageOrigin class abstract

This object describes the origin of a message. It can be one of

Implementers

Constructors

MessageOrigin({required MessageOriginType type, required int date})
Creates a new MessageOrigin instance.
const
MessageOrigin.fromJson(Map<String, dynamic> json)
Creates a new MessageOrigin instance from a JSON object.
factory

Properties

date int
Date the message was sent originally in Unix time
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
type MessageOriginType
Type of the message origin
final

Methods

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

Operators

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