toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (createTime != null) 'createTime': createTime!,
      if (displayName != null) 'displayName': displayName!,
      if (encryptionSpec != null) 'encryptionSpec': encryptionSpec!,
      if (endTime != null) 'endTime': endTime!,
      if (error != null) 'error': error!,
      if (labels != null) 'labels': labels!,
      if (maxFailedTrialCount != null)
        'maxFailedTrialCount': maxFailedTrialCount!,
      if (maxTrialCount != null) 'maxTrialCount': maxTrialCount!,
      if (name != null) 'name': name!,
      if (parallelTrialCount != null)
        'parallelTrialCount': parallelTrialCount!,
      if (startTime != null) 'startTime': startTime!,
      if (state != null) 'state': state!,
      if (studySpec != null) 'studySpec': studySpec!,
      if (trialJobSpec != null) 'trialJobSpec': trialJobSpec!,
      if (trials != null) 'trials': trials!,
      if (updateTime != null) 'updateTime': updateTime!,
    };