SamplingTargetDocument.fromJson constructor

SamplingTargetDocument.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory SamplingTargetDocument.fromJson(Map<String, dynamic> json) {
  return SamplingTargetDocument(
    fixedRate: json['FixedRate'] as double?,
    interval: json['Interval'] as int?,
    reservoirQuota: json['ReservoirQuota'] as int?,
    reservoirQuotaTTL: timeStampFromJson(json['ReservoirQuotaTTL']),
    ruleName: json['RuleName'] as String?,
  );
}