DataCaptureConfig.fromJson constructor
DataCaptureConfig.fromJson(
- Map<String, dynamic> json
)
Implementation
factory DataCaptureConfig.fromJson(Map<String, dynamic> json) {
return DataCaptureConfig(
captureOptions: (json['CaptureOptions'] as List)
.whereNotNull()
.map((e) => CaptureOption.fromJson(e as Map<String, dynamic>))
.toList(),
destinationS3Uri: json['DestinationS3Uri'] as String,
initialSamplingPercentage: json['InitialSamplingPercentage'] as int,
captureContentTypeHeader: json['CaptureContentTypeHeader'] != null
? CaptureContentTypeHeader.fromJson(
json['CaptureContentTypeHeader'] as Map<String, dynamic>)
: null,
enableCapture: json['EnableCapture'] as bool?,
kmsKeyId: json['KmsKeyId'] as String?,
);
}