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