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