PreloadEnabledStateUpdatedEvent.fromJson constructor
PreloadEnabledStateUpdatedEvent.fromJson(
- Map<String, dynamic> json
)
Implementation
factory PreloadEnabledStateUpdatedEvent.fromJson(Map<String, dynamic> json) {
return PreloadEnabledStateUpdatedEvent(
disabledByPreference: json['disabledByPreference'] as bool? ?? false,
disabledByDataSaver: json['disabledByDataSaver'] as bool? ?? false,
disabledByBatterySaver: json['disabledByBatterySaver'] as bool? ?? false,
disabledByHoldbackPrefetchSpeculationRules:
json['disabledByHoldbackPrefetchSpeculationRules'] as bool? ?? false,
disabledByHoldbackPrerenderSpeculationRules:
json['disabledByHoldbackPrerenderSpeculationRules'] as bool? ?? false,
);
}