toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final accounts = this.accounts;
  final executionRoleName = this.executionRoleName;
  final regions = this.regions;
  final targetLocationMaxConcurrency = this.targetLocationMaxConcurrency;
  final targetLocationMaxErrors = this.targetLocationMaxErrors;
  return {
    if (accounts != null) 'Accounts': accounts,
    if (executionRoleName != null) 'ExecutionRoleName': executionRoleName,
    if (regions != null) 'Regions': regions,
    if (targetLocationMaxConcurrency != null)
      'TargetLocationMaxConcurrency': targetLocationMaxConcurrency,
    if (targetLocationMaxErrors != null)
      'TargetLocationMaxErrors': targetLocationMaxErrors,
  };
}