CustomResourceSubresources.fromJson constructor
Creates a CustomResourceSubresources from JSON data.
Implementation
factory CustomResourceSubresources.fromJson(Map<String, dynamic> json) {
final tempScaleJson = json['scale'];
final tempStatusJson = json['status'];
final CustomResourceSubresourceScale? tempScale = tempScaleJson != null
? CustomResourceSubresourceScale.fromJson(tempScaleJson)
: null;
final CustomResourceSubresourceStatus? tempStatus = tempStatusJson != null
? CustomResourceSubresourceStatus.fromJson(tempStatusJson)
: null;
return CustomResourceSubresources(
scale: tempScale,
status: tempStatus,
);
}