ChatModel class
- Annotations
-
- @freezed
Constructors
- ChatModel({int? id, @JsonKey(name: 'receiver_id') int? receiverId, String? status, @JsonKey(name: 'created_at') String? createdAt, @JsonKey(name: 'updated_at') String? updatedAt, @JsonKey(name: 'deleted_at') dynamic deletedAt, @JsonKey(name: 'room_name') String? roomName, @JsonKey(name: 'avatar') String? avatar, @JsonKey(name: 'phone') String? phone, @JsonKey(name: 'content') String? content})
-
factory
-
ChatModel.fromJson(Map<
String, dynamic> json) -
factory
Properties
- avatar → String?
-
no setterinherited
- content → String?
-
no setterinherited
-
copyWith
→ $ChatModelCopyWith<
ChatModel> -
no setterinherited
- createdAt → String?
-
no setterinherited
- deletedAt → dynamic
-
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → int?
-
no setterinherited
- phone → String?
-
no setterinherited
- receiverId → int?
-
no setterinherited
- roomName → String?
-
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- status → String?
-
no setterinherited
- updatedAt → String?
-
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