toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final environmentVariables = this.environmentVariables;
  final eventSources = this.eventSources;
  final execArgs = this.execArgs;
  final inputPayloadEncodingType = this.inputPayloadEncodingType;
  final linuxProcessParams = this.linuxProcessParams;
  final maxIdleTimeInSeconds = this.maxIdleTimeInSeconds;
  final maxInstancesCount = this.maxInstancesCount;
  final maxQueueSize = this.maxQueueSize;
  final pinned = this.pinned;
  final statusTimeoutInSeconds = this.statusTimeoutInSeconds;
  final timeoutInSeconds = this.timeoutInSeconds;
  return {
    if (environmentVariables != null)
      'environmentVariables': environmentVariables,
    if (eventSources != null) 'eventSources': eventSources,
    if (execArgs != null) 'execArgs': execArgs,
    if (inputPayloadEncodingType != null)
      'inputPayloadEncodingType': inputPayloadEncodingType.toValue(),
    if (linuxProcessParams != null) 'linuxProcessParams': linuxProcessParams,
    if (maxIdleTimeInSeconds != null)
      'maxIdleTimeInSeconds': maxIdleTimeInSeconds,
    if (maxInstancesCount != null) 'maxInstancesCount': maxInstancesCount,
    if (maxQueueSize != null) 'maxQueueSize': maxQueueSize,
    if (pinned != null) 'pinned': pinned,
    if (statusTimeoutInSeconds != null)
      'statusTimeoutInSeconds': statusTimeoutInSeconds,
    if (timeoutInSeconds != null) 'timeoutInSeconds': timeoutInSeconds,
  };
}