DaemonSetUpdateStrategy.fromJson constructor

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

Creates a DaemonSetUpdateStrategy from JSON data.

Implementation

factory DaemonSetUpdateStrategy.fromJson(Map<String, dynamic> json) {
  final tempRollingUpdateJson = json['rollingUpdate'];
  final tempTypeJson = json['type'];

  final RollingUpdateDaemonSet? tempRollingUpdate =
      tempRollingUpdateJson != null
          ? RollingUpdateDaemonSet.fromJson(tempRollingUpdateJson)
          : null;
  final String? tempType = tempTypeJson;

  return DaemonSetUpdateStrategy(
    rollingUpdate: tempRollingUpdate,
    type: tempType,
  );
}