GetSamplingRulesResult.fromJson constructor

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

Implementation

factory GetSamplingRulesResult.fromJson(Map<String, dynamic> json) {
  return GetSamplingRulesResult(
    nextToken: json['NextToken'] as String?,
    samplingRuleRecords: (json['SamplingRuleRecords'] as List?)
        ?.whereNotNull()
        .map((e) => SamplingRuleRecord.fromJson(e as Map<String, dynamic>))
        .toList(),
  );
}