fromMap static method

Gets a possible TrustedWebActivityImmersiveDisplayMode instance from a Map value.

Implementation

static TrustedWebActivityImmersiveDisplayMode? fromMap(
    Map<String, dynamic>? map) {
  if (map == null) {
    return null;
  }
  final instance = TrustedWebActivityImmersiveDisplayMode(
    isSticky: map['isSticky'],
    layoutInDisplayCutoutMode:
        AndroidLayoutInDisplayCutoutMode.fromNativeValue(
            map['displayCutoutMode']),
  );
  instance.displayCutoutMode =
      LayoutInDisplayCutoutMode.fromNativeValue(map['displayCutoutMode'])!;
  return instance;
}