SuggestedAction.fromJson constructor
a SuggestedAction return type can be :
Implementation
factory SuggestedAction.fromJson(Map<String, dynamic> json) {
switch(json["@type"]) {
case SuggestedActionEnableArchiveAndMuteNewChats.CONSTRUCTOR:
return SuggestedActionEnableArchiveAndMuteNewChats.fromJson(json);
case SuggestedActionCheckPassword.CONSTRUCTOR:
return SuggestedActionCheckPassword.fromJson(json);
case SuggestedActionCheckPhoneNumber.CONSTRUCTOR:
return SuggestedActionCheckPhoneNumber.fromJson(json);
case SuggestedActionViewChecksHint.CONSTRUCTOR:
return SuggestedActionViewChecksHint.fromJson(json);
case SuggestedActionConvertToBroadcastGroup.CONSTRUCTOR:
return SuggestedActionConvertToBroadcastGroup.fromJson(json);
case SuggestedActionSetPassword.CONSTRUCTOR:
return SuggestedActionSetPassword.fromJson(json);
default:
return const SuggestedAction();
}
}