CreateDatasetResponse.fromJson constructor

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

Implementation

factory CreateDatasetResponse.fromJson(Map<String, dynamic> json) {
  return CreateDatasetResponse(
    datasetArn: json['datasetArn'] as String?,
    datasetName: json['datasetName'] as String?,
    retentionPeriod: json['retentionPeriod'] != null
        ? RetentionPeriod.fromJson(
            json['retentionPeriod'] as Map<String, dynamic>)
        : null,
  );
}