Trial.fromJson constructor
Implementation
factory Trial.fromJson(Map<String, dynamic> json) {
return Trial(
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,
tags: (json['Tags'] as List?)
?.whereNotNull()
.map((e) => Tag.fromJson(e as Map<String, dynamic>))
.toList(),
trialArn: json['TrialArn'] as String?,
trialComponentSummaries: (json['TrialComponentSummaries'] as List?)
?.whereNotNull()
.map((e) =>
TrialComponentSimpleSummary.fromJson(e as Map<String, dynamic>))
.toList(),
trialName: json['TrialName'] as String?,
);
}