EnvFromSource.fromJson constructor
Creates a EnvFromSource from JSON data.
Implementation
factory EnvFromSource.fromJson(Map<String, dynamic> json) {
final tempConfigMapRefJson = json['configMapRef'];
final tempPrefixJson = json['prefix'];
final tempSecretRefJson = json['secretRef'];
final ConfigMapEnvSource? tempConfigMapRef = tempConfigMapRefJson != null
? ConfigMapEnvSource.fromJson(tempConfigMapRefJson)
: null;
final String? tempPrefix = tempPrefixJson;
final SecretEnvSource? tempSecretRef = tempSecretRefJson != null
? SecretEnvSource.fromJson(tempSecretRefJson)
: null;
return EnvFromSource(
configMapRef: tempConfigMapRef,
prefix: tempPrefix,
secretRef: tempSecretRef,
);
}