toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (config != null) 'config': config!.toJson(),
      if (createTime != null) 'createTime': createTime!,
      if (endTime != null) 'endTime': endTime!,
      if (failureDetails != null)
        'failureDetails':
            failureDetails!.map((value) => value.toJson()).toList(),
      if (failureReason != null) 'failureReason': failureReason!,
      if (inputUri != null) 'inputUri': inputUri!,
      if (name != null) 'name': name!,
      if (originUri != null) 'originUri': originUri!.toJson(),
      if (outputUri != null) 'outputUri': outputUri!,
      if (priority != null) 'priority': priority!,
      if (progress != null) 'progress': progress!.toJson(),
      if (startTime != null) 'startTime': startTime!,
      if (state != null) 'state': state!,
      if (templateId != null) 'templateId': templateId!,
      if (ttlAfterCompletionDays != null)
        'ttlAfterCompletionDays': ttlAfterCompletionDays!,
    };