OfflineConnectedApp.parse constructor

OfflineConnectedApp.parse(
  1. Map<String, Object?>? json
)

Implementation

factory OfflineConnectedApp.parse(Map<String, Object?>? json) {
  if (json == null) return OfflineConnectedApp();
  return OfflineConnectedApp(
    isFlutterAppNow: json[ConnectedApp.isFlutterAppKey] as bool?,
    isProfileBuildNow: json[ConnectedApp.isProfileBuildKey] as bool?,
    isDartWebAppNow: json[ConnectedApp.isDartWebAppKey] as bool?,
    isRunningOnDartVM: json[ConnectedApp.isRunningOnDartVMKey] as bool?,
    operatingSystem: (json[ConnectedApp.operatingSystemKey] as String?) ??
        ConnectedApp.unknownOS,
  );
}