EnvVar.fromJson constructor
Creates a EnvVar from JSON data.
Implementation
factory EnvVar.fromJson(Map<String, dynamic> json) {
final tempNameJson = json['name'];
final tempValueJson = json['value'];
final tempValueFromJson = json['valueFrom'];
final String tempName = tempNameJson;
final String? tempValue = tempValueJson;
final EnvVarSource? tempValueFrom = tempValueFromJson != null
? EnvVarSource.fromJson(tempValueFromJson)
: null;
return EnvVar(
name: tempName,
value: tempValue,
valueFrom: tempValueFrom,
);
}