ChatList.fromJson constructor
a ChatList return type can be :
Implementation
factory ChatList.fromJson(Map<String, dynamic> json) {
switch(json["@type"]) {
case ChatListMain.CONSTRUCTOR:
return ChatListMain.fromJson(json);
case ChatListArchive.CONSTRUCTOR:
return ChatListArchive.fromJson(json);
case ChatListFilter.CONSTRUCTOR:
return ChatListFilter.fromJson(json);
default:
return const ChatList();
}
}