toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final humanTaskUiArn = this.humanTaskUiArn;
  final taskCount = this.taskCount;
  final taskDescription = this.taskDescription;
  final taskTitle = this.taskTitle;
  final workteamArn = this.workteamArn;
  final publicWorkforceTaskPrice = this.publicWorkforceTaskPrice;
  final taskAvailabilityLifetimeInSeconds =
      this.taskAvailabilityLifetimeInSeconds;
  final taskKeywords = this.taskKeywords;
  final taskTimeLimitInSeconds = this.taskTimeLimitInSeconds;
  return {
    'HumanTaskUiArn': humanTaskUiArn,
    'TaskCount': taskCount,
    'TaskDescription': taskDescription,
    'TaskTitle': taskTitle,
    'WorkteamArn': workteamArn,
    if (publicWorkforceTaskPrice != null)
      'PublicWorkforceTaskPrice': publicWorkforceTaskPrice,
    if (taskAvailabilityLifetimeInSeconds != null)
      'TaskAvailabilityLifetimeInSeconds': taskAvailabilityLifetimeInSeconds,
    if (taskKeywords != null) 'TaskKeywords': taskKeywords,
    if (taskTimeLimitInSeconds != null)
      'TaskTimeLimitInSeconds': taskTimeLimitInSeconds,
  };
}