fromJson static method
Implementation
static WebBrowserSettings? fromJson(Map<String, dynamic>? json) {
if (json == null) {
return null;
}
return WebBrowserSettings(
openExternalBrowser: (json['open_external_browser'] as bool?) ?? false,
externalExceptions: List<WebDomainException>.from(
tdListFromJson(json['external_exceptions'])
.map((item) => WebDomainException.fromJson(tdMapFromJson(item)))
.whereType<WebDomainException>(),
),
inAppExceptions: List<WebDomainException>.from(
tdListFromJson(json['in_app_exceptions'])
.map((item) => WebDomainException.fromJson(tdMapFromJson(item)))
.whereType<WebDomainException>(),
),
displayCloseButton: (json['display_close_button'] as bool?) ?? false,
);
}