toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final automation = this.automation;
  final lambda = this.lambda;
  final runCommand = this.runCommand;
  final stepFunctions = this.stepFunctions;
  return {
    if (automation != null) 'Automation': automation,
    if (lambda != null) 'Lambda': lambda,
    if (runCommand != null) 'RunCommand': runCommand,
    if (stepFunctions != null) 'StepFunctions': stepFunctions,
  };
}