fromMap static method

RendererPriorityPolicy? fromMap(
  1. Map<String, dynamic>? map
)

Gets a possible RendererPriorityPolicy instance from a Map value.

Implementation

static RendererPriorityPolicy? fromMap(Map<String, dynamic>? map) {
  if (map == null) {
    return null;
  }
  final instance = RendererPriorityPolicy(
    rendererRequestedPriority:
        RendererPriority.fromNativeValue(map['rendererRequestedPriority']),
    waivedWhenNotVisible: map['waivedWhenNotVisible'],
  );
  return instance;
}