reqPOST method Null safety

Future reqPOST(
  1. {required String path,
  2. Map<String, String>? queryParameters,
  3. Uint8List? body}
)

POST 요청입니다.

Implementation

Future<dynamic> reqPOST({required String path, Map<String, String>? queryParameters, Uint8List? body}) async {
  try {
    RestOptions options = RestOptions(
      path: path,
      queryParameters: queryParameters,
      body: body,
    );
    RestOperation restOperation = Amplify.API.post(restOptions: options);
    return await restOperation.response;
  } catch (e) {
    rethrow;
  }
}