toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final startedAfter = this.startedAfter;
  final startedBefore = this.startedBefore;
  final status = this.status;
  final taskRunType = this.taskRunType;
  return {
    if (startedAfter != null)
      'StartedAfter': unixTimestampToJson(startedAfter),
    if (startedBefore != null)
      'StartedBefore': unixTimestampToJson(startedBefore),
    if (status != null) 'Status': status.toValue(),
    if (taskRunType != null) 'TaskRunType': taskRunType.toValue(),
  };
}