TrialComponentSummary.fromJson constructor
TrialComponentSummary.fromJson(
- Map<String, dynamic> json
)
Implementation
factory TrialComponentSummary.fromJson(Map<String, dynamic> json) {
return TrialComponentSummary(
createdBy: json['CreatedBy'] != null
? UserContext.fromJson(json['CreatedBy'] as Map<String, dynamic>)
: null,
creationTime: timeStampFromJson(json['CreationTime']),
displayName: json['DisplayName'] as String?,
endTime: timeStampFromJson(json['EndTime']),
lastModifiedBy: json['LastModifiedBy'] != null
? UserContext.fromJson(json['LastModifiedBy'] as Map<String, dynamic>)
: null,
lastModifiedTime: timeStampFromJson(json['LastModifiedTime']),
startTime: timeStampFromJson(json['StartTime']),
status: json['Status'] != null
? TrialComponentStatus.fromJson(
json['Status'] as Map<String, dynamic>)
: null,
trialComponentArn: json['TrialComponentArn'] as String?,
trialComponentName: json['TrialComponentName'] as String?,
trialComponentSource: json['TrialComponentSource'] != null
? TrialComponentSource.fromJson(
json['TrialComponentSource'] as Map<String, dynamic>)
: null,
);
}