DescribeTrialResponse.fromJson constructor

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

Implementation

factory DescribeTrialResponse.fromJson(Map<String, dynamic> json) {
  return DescribeTrialResponse(
    createdBy: json['CreatedBy'] != null
        ? UserContext.fromJson(json['CreatedBy'] as Map<String, dynamic>)
        : null,
    creationTime: timeStampFromJson(json['CreationTime']),
    displayName: json['DisplayName'] as String?,
    experimentName: json['ExperimentName'] as String?,
    lastModifiedBy: json['LastModifiedBy'] != null
        ? UserContext.fromJson(json['LastModifiedBy'] as Map<String, dynamic>)
        : null,
    lastModifiedTime: timeStampFromJson(json['LastModifiedTime']),
    metadataProperties: json['MetadataProperties'] != null
        ? MetadataProperties.fromJson(
            json['MetadataProperties'] as Map<String, dynamic>)
        : null,
    source: json['Source'] != null
        ? TrialSource.fromJson(json['Source'] as Map<String, dynamic>)
        : null,
    trialArn: json['TrialArn'] as String?,
    trialName: json['TrialName'] as String?,
  );
}