FunctionConfigurationEnvironment.fromJson constructor
FunctionConfigurationEnvironment.fromJson(
- Map<String, dynamic> json
)
Implementation
factory FunctionConfigurationEnvironment.fromJson(Map<String, dynamic> json) {
return FunctionConfigurationEnvironment(
accessSysfs: json['AccessSysfs'] as bool?,
execution: json['Execution'] != null
? FunctionExecutionConfig.fromJson(
json['Execution'] as Map<String, dynamic>)
: null,
resourceAccessPolicies: (json['ResourceAccessPolicies'] as List?)
?.whereNotNull()
.map((e) => ResourceAccessPolicy.fromJson(e as Map<String, dynamic>))
.toList(),
variables: (json['Variables'] as Map<String, dynamic>?)
?.map((k, e) => MapEntry(k, e as String)),
);
}