toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (approvalConfig != null) 'approvalConfig': approvalConfig!,
      if (autodetect != null) 'autodetect': autodetect!,
      if (bitbucketServerTriggerConfig != null)
        'bitbucketServerTriggerConfig': bitbucketServerTriggerConfig!,
      if (build != null) 'build': build!,
      if (createTime != null) 'createTime': createTime!,
      if (description != null) 'description': description!,
      if (disabled != null) 'disabled': disabled!,
      if (eventType != null) 'eventType': eventType!,
      if (filename != null) 'filename': filename!,
      if (filter != null) 'filter': filter!,
      if (gitFileSource != null) 'gitFileSource': gitFileSource!,
      if (github != null) 'github': github!,
      if (gitlabEnterpriseEventsConfig != null)
        'gitlabEnterpriseEventsConfig': gitlabEnterpriseEventsConfig!,
      if (id != null) 'id': id!,
      if (ignoredFiles != null) 'ignoredFiles': ignoredFiles!,
      if (includeBuildLogs != null) 'includeBuildLogs': includeBuildLogs!,
      if (includedFiles != null) 'includedFiles': includedFiles!,
      if (name != null) 'name': name!,
      if (pubsubConfig != null) 'pubsubConfig': pubsubConfig!,
      if (repositoryEventConfig != null)
        'repositoryEventConfig': repositoryEventConfig!,
      if (resourceName != null) 'resourceName': resourceName!,
      if (serviceAccount != null) 'serviceAccount': serviceAccount!,
      if (sourceToBuild != null) 'sourceToBuild': sourceToBuild!,
      if (substitutions != null) 'substitutions': substitutions!,
      if (tags != null) 'tags': tags!,
      if (triggerTemplate != null) 'triggerTemplate': triggerTemplate!,
      if (webhookConfig != null) 'webhookConfig': webhookConfig!,
    };