ReplicaSetSpec.fromJson constructor
Creates a ReplicaSetSpec from JSON data.
Implementation
factory ReplicaSetSpec.fromJson(Map<String, dynamic> json) {
final tempMinReadySecondsJson = json['minReadySeconds'];
final tempReplicasJson = json['replicas'];
final tempSelectorJson = json['selector'];
final tempTemplateJson = json['template'];
final int? tempMinReadySeconds = tempMinReadySecondsJson;
final int? tempReplicas = tempReplicasJson;
final LabelSelector tempSelector = LabelSelector.fromJson(tempSelectorJson);
final PodTemplateSpec? tempTemplate = tempTemplateJson != null
? PodTemplateSpec.fromJson(tempTemplateJson)
: null;
return ReplicaSetSpec(
minReadySeconds: tempMinReadySeconds,
replicas: tempReplicas,
selector: tempSelector,
template: tempTemplate,
);
}