SamplingStrategy.fromJson constructor

SamplingStrategy.fromJson(
  1. Object? j
)

Implementation

factory SamplingStrategy.fromJson(Object? j) {
  final json = j as Map<String, Object?>;
  return SamplingStrategy(
    randomSampleConfig: switch (json['randomSampleConfig']) {
      null => null,
      Object $1 => SamplingStrategy_RandomSampleConfig.fromJson($1),
    },
  );
}