toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (instanceRedistributionType != null)
        'instanceRedistributionType': instanceRedistributionType!,
      if (maxSurge != null) 'maxSurge': maxSurge!,
      if (maxUnavailable != null) 'maxUnavailable': maxUnavailable!,
      if (minimalAction != null) 'minimalAction': minimalAction!,
      if (mostDisruptiveAllowedAction != null)
        'mostDisruptiveAllowedAction': mostDisruptiveAllowedAction!,
      if (replacementMethod != null) 'replacementMethod': replacementMethod!,
      if (type != null) 'type': type!,
    };