DescribeExperimentResponse.fromJson constructor

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

Implementation

factory DescribeExperimentResponse.fromJson(Map<String, dynamic> json) {
  return DescribeExperimentResponse(
    createdBy: json['CreatedBy'] != null
        ? UserContext.fromJson(json['CreatedBy'] as Map<String, dynamic>)
        : null,
    creationTime: timeStampFromJson(json['CreationTime']),
    description: json['Description'] as String?,
    displayName: json['DisplayName'] as String?,
    experimentArn: json['ExperimentArn'] as String?,
    experimentName: json['ExperimentName'] as String?,
    lastModifiedBy: json['LastModifiedBy'] != null
        ? UserContext.fromJson(json['LastModifiedBy'] as Map<String, dynamic>)
        : null,
    lastModifiedTime: timeStampFromJson(json['LastModifiedTime']),
    source: json['Source'] != null
        ? ExperimentSource.fromJson(json['Source'] as Map<String, dynamic>)
        : null,
  );
}