You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
930 B
Dart
30 lines
930 B
Dart
// To parse this JSON data, do
|
|
//
|
|
// final chatUnreadCovnCountModel = chatUnreadCovnCountModelFromMap(jsonString);
|
|
|
|
import 'dart:convert';
|
|
|
|
class ChatUnreadCovnCountModel {
|
|
ChatUnreadCovnCountModel({
|
|
this.singleChatCount,
|
|
this.groupChatCount,
|
|
});
|
|
|
|
int? singleChatCount;
|
|
int? groupChatCount;
|
|
|
|
factory ChatUnreadCovnCountModel.fromJson(String str) => ChatUnreadCovnCountModel.fromMap(json.decode(str));
|
|
|
|
String toJson() => json.encode(toMap());
|
|
|
|
factory ChatUnreadCovnCountModel.fromMap(Map<String, dynamic> json) => ChatUnreadCovnCountModel(
|
|
singleChatCount: json["singleChatCount"] == null ? null : json["singleChatCount"],
|
|
groupChatCount: json["groupChatCount"] == null ? null : json["groupChatCount"],
|
|
);
|
|
|
|
Map<String, dynamic> toMap() => {
|
|
"singleChatCount": singleChatCount == null ? null : singleChatCount,
|
|
"groupChatCount": groupChatCount == null ? null : groupChatCount,
|
|
};
|
|
}
|