AppLinkSettings.fromErrorJson constructor
AppLinkSettings.fromErrorJson(
- String json
Used when the server can't retrieve app link settings.
The input needs to be in json format from DevTools server response.
Implementation
factory AppLinkSettings.fromErrorJson(String json) {
final jsonObject = jsonDecode(json) as Map;
final message = jsonObject[_kErrorKey]! as String;
return AppLinkSettings._(
'',
false,
<AndroidDeeplink>[],
message,
);
}