fromMap static method

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

Gets a possible TracingSettings instance from a Map value.

Implementation

static TracingSettings? fromMap(Map<String, dynamic>? map) {
  if (map == null) {
    return null;
  }
  final instance = TracingSettings(
    tracingMode: TracingMode.fromNativeValue(map['tracingMode']),
  );
  instance.categories = _deserializeCategories(map['categories']);
  return instance;
}