EnvVarSource.fromJson constructor
Creates a EnvVarSource from JSON data.
Implementation
factory EnvVarSource.fromJson(Map<String, dynamic> json) {
final tempConfigMapKeyRefJson = json['configMapKeyRef'];
final tempFieldRefJson = json['fieldRef'];
final tempResourceFieldRefJson = json['resourceFieldRef'];
final tempSecretKeyRefJson = json['secretKeyRef'];
final ConfigMapKeySelector? tempConfigMapKeyRef =
tempConfigMapKeyRefJson != null
? ConfigMapKeySelector.fromJson(tempConfigMapKeyRefJson)
: null;
final ObjectFieldSelector? tempFieldRef = tempFieldRefJson != null
? ObjectFieldSelector.fromJson(tempFieldRefJson)
: null;
final ResourceFieldSelector? tempResourceFieldRef =
tempResourceFieldRefJson != null
? ResourceFieldSelector.fromJson(tempResourceFieldRefJson)
: null;
final SecretKeySelector? tempSecretKeyRef = tempSecretKeyRefJson != null
? SecretKeySelector.fromJson(tempSecretKeyRefJson)
: null;
return EnvVarSource(
configMapKeyRef: tempConfigMapKeyRef,
fieldRef: tempFieldRef,
resourceFieldRef: tempResourceFieldRef,
secretKeyRef: tempSecretKeyRef,
);
}