fromJson static method
Inherited by: WebBrowserTypeExternal WebBrowserTypeInApp
Implementation
static WebBrowserType? fromJson(Map<String, dynamic>? json) {
if (json == null) {
return null;
}
switch (json['@type']) {
case WebBrowserTypeExternal.constructor:
return WebBrowserTypeExternal.fromJson(json);
case WebBrowserTypeInApp.constructor:
return WebBrowserTypeInApp.fromJson(json);
default:
return null;
}
}