toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final jobName = this.jobName;
  final jobStatus = this.jobStatus;
  final submitTimeAfter = this.submitTimeAfter;
  final submitTimeBefore = this.submitTimeBefore;
  return {
    if (jobName != null) 'JobName': jobName,
    if (jobStatus != null) 'JobStatus': jobStatus.toValue(),
    if (submitTimeAfter != null)
      'SubmitTimeAfter': unixTimestampToJson(submitTimeAfter),
    if (submitTimeBefore != null)
      'SubmitTimeBefore': unixTimestampToJson(submitTimeBefore),
  };
}