GetSamplingTargetsResult.fromJson constructor

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

Implementation

factory GetSamplingTargetsResult.fromJson(Map<String, dynamic> json) {
  return GetSamplingTargetsResult(
    lastRuleModification: timeStampFromJson(json['LastRuleModification']),
    samplingTargetDocuments: (json['SamplingTargetDocuments'] as List?)
        ?.whereNotNull()
        .map(
            (e) => SamplingTargetDocument.fromJson(e as Map<String, dynamic>))
        .toList(),
    unprocessedStatistics: (json['UnprocessedStatistics'] as List?)
        ?.whereNotNull()
        .map((e) => UnprocessedStatistics.fromJson(e as Map<String, dynamic>))
        .toList(),
  );
}