SamplingRuleRecord.fromJson constructor

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

Implementation

factory SamplingRuleRecord.fromJson(Map<String, dynamic> json) {
  return SamplingRuleRecord(
    createdAt: timeStampFromJson(json['CreatedAt']),
    modifiedAt: timeStampFromJson(json['ModifiedAt']),
    samplingRule: json['SamplingRule'] != null
        ? SamplingRule.fromJson(json['SamplingRule'] as Map<String, dynamic>)
        : null,
  );
}