CustomResourceSubresourceScale.fromJson constructor

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

Creates a CustomResourceSubresourceScale from JSON data.

Implementation

factory CustomResourceSubresourceScale.fromJson(Map<String, dynamic> json) {
  final tempLabelSelectorPathJson = json['labelSelectorPath'];
  final tempSpecReplicasPathJson = json['specReplicasPath'];
  final tempStatusReplicasPathJson = json['statusReplicasPath'];

  final String? tempLabelSelectorPath = tempLabelSelectorPathJson;
  final String tempSpecReplicasPath = tempSpecReplicasPathJson;
  final String tempStatusReplicasPath = tempStatusReplicasPathJson;

  return CustomResourceSubresourceScale(
    labelSelectorPath: tempLabelSelectorPath,
    specReplicasPath: tempSpecReplicasPath,
    statusReplicasPath: tempStatusReplicasPath,
  );
}