ResourceClaimSpec.fromJson constructor
Creates a ResourceClaimSpec from JSON data.
Implementation
factory ResourceClaimSpec.fromJson(Map<String, dynamic> json) {
final tempAllocationModeJson = json['allocationMode'];
final tempParametersRefJson = json['parametersRef'];
final tempResourceClassNameJson = json['resourceClassName'];
final String? tempAllocationMode = tempAllocationModeJson;
final ResourceClaimParametersReference? tempParametersRef =
tempParametersRefJson != null
? ResourceClaimParametersReference.fromJson(tempParametersRefJson)
: null;
final String tempResourceClassName = tempResourceClassNameJson;
return ResourceClaimSpec(
allocationMode: tempAllocationMode,
parametersRef: tempParametersRef,
resourceClassName: tempResourceClassName,
);
}