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