AutosaveSettings.fromJson constructor
Parse from a json
Implementation
factory AutosaveSettings.fromJson(Map<String, dynamic> json) =>
AutosaveSettings(
privateChatSettings:
ScopeAutosaveSettings.fromJson(json['private_chat_settings']),
groupSettings: ScopeAutosaveSettings.fromJson(json['group_settings']),
channelSettings:
ScopeAutosaveSettings.fromJson(json['channel_settings']),
exceptions: List<AutosaveSettingsException>.from(
(json['exceptions'] ?? [])
.map((item) => AutosaveSettingsException.fromJson(item))
.toList()),
extra: json['@extra'],
clientId: json['@client_id'],
);