PriorityLevelConfiguration.fromJson constructor
Creates a PriorityLevelConfiguration from JSON data.
Implementation
factory PriorityLevelConfiguration.fromJson(Map<String, dynamic> json) {
final tempApiVersionJson = json['apiVersion'];
final tempKindJson = json['kind'];
final tempMetadataJson = json['metadata'];
final tempSpecJson = json['spec'];
final tempStatusJson = json['status'];
final String? tempApiVersion = tempApiVersionJson;
final String? tempKind = tempKindJson;
final ObjectMeta? tempMetadata =
tempMetadataJson != null ? ObjectMeta.fromJson(tempMetadataJson) : null;
final PriorityLevelConfigurationSpec? tempSpec = tempSpecJson != null
? PriorityLevelConfigurationSpec.fromJson(tempSpecJson)
: null;
final PriorityLevelConfigurationStatus? tempStatus = tempStatusJson != null
? PriorityLevelConfigurationStatus.fromJson(tempStatusJson)
: null;
return PriorityLevelConfiguration(
apiVersion: tempApiVersion,
kind: tempKind,
metadata: tempMetadata,
spec: tempSpec,
status: tempStatus,
);
}