AppLinkSettings.fromJson constructor

AppLinkSettings.fromJson(
  1. String json
)

Implementation

factory AppLinkSettings.fromJson(String json) {
  final jsonObject = jsonDecode(json) as Map;
  final {
    _kApplicationIdKey: String applicationId,
    _kDeeplinksKey: List<Object?> deepLinks,
    _kDeeplinkingFlagEnabledKey: bool deeplinkingFlagEnabled,
  } = jsonObject;
  return AppLinkSettings._(
    applicationId,
    deeplinkingFlagEnabled,
    deepLinks
        .cast<Map<String, dynamic>>()
        .map<AndroidDeeplink>(AndroidDeeplink._fromJsonObject)
        .toList(),
  );
}