toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final allocatedCapacity = this.allocatedCapacity;
  final command = this.command;
  final connections = this.connections;
  final defaultArguments = this.defaultArguments;
  final description = this.description;
  final executionProperty = this.executionProperty;
  final glueVersion = this.glueVersion;
  final logUri = this.logUri;
  final maxCapacity = this.maxCapacity;
  final maxRetries = this.maxRetries;
  final nonOverridableArguments = this.nonOverridableArguments;
  final notificationProperty = this.notificationProperty;
  final numberOfWorkers = this.numberOfWorkers;
  final role = this.role;
  final securityConfiguration = this.securityConfiguration;
  final timeout = this.timeout;
  final workerType = this.workerType;
  return {
    if (allocatedCapacity != null) 'AllocatedCapacity': allocatedCapacity,
    if (command != null) 'Command': command,
    if (connections != null) 'Connections': connections,
    if (defaultArguments != null) 'DefaultArguments': defaultArguments,
    if (description != null) 'Description': description,
    if (executionProperty != null) 'ExecutionProperty': executionProperty,
    if (glueVersion != null) 'GlueVersion': glueVersion,
    if (logUri != null) 'LogUri': logUri,
    if (maxCapacity != null) 'MaxCapacity': maxCapacity,
    if (maxRetries != null) 'MaxRetries': maxRetries,
    if (nonOverridableArguments != null)
      'NonOverridableArguments': nonOverridableArguments,
    if (notificationProperty != null)
      'NotificationProperty': notificationProperty,
    if (numberOfWorkers != null) 'NumberOfWorkers': numberOfWorkers,
    if (role != null) 'Role': role,
    if (securityConfiguration != null)
      'SecurityConfiguration': securityConfiguration,
    if (timeout != null) 'Timeout': timeout,
    if (workerType != null) 'WorkerType': workerType.toValue(),
  };
}