RollingUpdateStatefulSetStrategy.fromJson constructor

RollingUpdateStatefulSetStrategy.fromJson(
  1. Map<String, dynamic> json
)

Creates a RollingUpdateStatefulSetStrategy from JSON data.

Implementation

factory RollingUpdateStatefulSetStrategy.fromJson(Map<String, dynamic> json) {
  final tempMaxUnavailableJson = json['maxUnavailable'];
  final tempPartitionJson = json['partition'];

  final IntOrString? tempMaxUnavailable = tempMaxUnavailableJson != null
      ? IntOrString(tempMaxUnavailableJson)
      : null;
  final int? tempPartition = tempPartitionJson;

  return RollingUpdateStatefulSetStrategy(
    maxUnavailable: tempMaxUnavailable,
    partition: tempPartition,
  );
}