Skip to main content

ChatUser class

<p>This class creates JSON code for chat user using the JsonSerializable package.</p>

Annotations

Constructors

ChatUser ({String? firstName, String? id, String? image})

ChatUser.fromJson (Map<String, dynamic> json)

factory

Properties

firstNameString?

<span class="feature">read / write</span>

hashCodeint

The hash code for this object.
<span class="feature">read-only</span><span class="feature">inherited</span>

idString?

<span class="feature">read / write</span>

imageString?

<span class="feature">read / write</span>

runtimeTypeType

A representation of the runtime type of the object.
<span class="feature">read-only</span><span class="feature">inherited</span>

Methods

noSuchMethod(Invocation invocation) dynamic

Invoked when a non-existent method or property is accessed.
<span class="feature">inherited</span>

toJson() Map<String, dynamic>
toString() String

A string representation of this object.
<span class="feature">inherited</span>

Operators

operator ==(Object other) bool

The equality operator.
<span class="feature">inherited</span>