RollingUpdateDaemonSet.fromJson constructor
Creates a RollingUpdateDaemonSet from JSON data.
Implementation
factory RollingUpdateDaemonSet.fromJson(Map<String, dynamic> json) {
final tempMaxSurgeJson = json['maxSurge'];
final tempMaxUnavailableJson = json['maxUnavailable'];
final IntOrString? tempMaxSurge =
tempMaxSurgeJson != null ? IntOrString(tempMaxSurgeJson) : null;
final IntOrString? tempMaxUnavailable = tempMaxUnavailableJson != null
? IntOrString(tempMaxUnavailableJson)
: null;
return RollingUpdateDaemonSet(
maxSurge: tempMaxSurge,
maxUnavailable: tempMaxUnavailable,
);
}