Chat class

A chat.

Once created, no properties of a Chat object may be changed.

Annotations
  • @immutable

Constructors

Chat({required String chat, String? label})
Constructs a Chat instance.
const
Chat.fromJson(String json)
Constructs an Chat instance from a json string.
factory
Chat.fromMap(Map<String, dynamic> map)
Constructs an Chat instance from a map.

Properties

chat String
The chat.
final
hashCode int
The hash code for this object.
no setteroverride
label String?
The label.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

copyWith({String? chat, String? label}) Chat
Creates a copy of this Chat instance but with the given fields replaced with the new values.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() String
Creates a JSON string representing this Chat instance.
toMap() Map<String, dynamic>
Creates a Map<String, dynamic> representing this Chat instance.
toString() String
A string representation of this object.
override

Operators

operator ==(covariant Chat other) bool
The equality operator.
override