AwsApiGatewayResponse.fromJson constructor
AwsApiGatewayResponse.fromJson(})
The factory creates a new AwsApiGatewayResponse from JSON. It optionally accepts the Base64 encoded flag and a HTTP Status Code for the response.
Implementation
factory AwsApiGatewayResponse.fromJson(
Map<String, dynamic> body, {
bool isBase64Encoded = false,
int statusCode = HttpStatus.ok,
Map<String, String>? headers,
}) {
return AwsApiGatewayResponse(
body: json.encode(body),
isBase64Encoded: isBase64Encoded,
headers: headers,
statusCode: statusCode,
);
}