AwsLambdaFunctionEnvironment.fromJson constructor

AwsLambdaFunctionEnvironment.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory AwsLambdaFunctionEnvironment.fromJson(Map<String, dynamic> json) {
  return AwsLambdaFunctionEnvironment(
    error: json['Error'] != null
        ? AwsLambdaFunctionEnvironmentError.fromJson(
            json['Error'] as Map<String, dynamic>)
        : null,
    variables: (json['Variables'] as Map<String, dynamic>?)
        ?.map((k, e) => MapEntry(k, e as String)),
  );
}