TrialSummary.fromJson constructor

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

Implementation

factory TrialSummary.fromJson(Map<String, dynamic> json) {
  return TrialSummary(
    creationTime: timeStampFromJson(json['CreationTime']),
    displayName: json['DisplayName'] as String?,
    lastModifiedTime: timeStampFromJson(json['LastModifiedTime']),
    trialArn: json['TrialArn'] as String?,
    trialName: json['TrialName'] as String?,
    trialSource: json['TrialSource'] != null
        ? TrialSource.fromJson(json['TrialSource'] as Map<String, dynamic>)
        : null,
  );
}