createTable method

Future<DynamiteResponse<Table, void>> createTable({
  1. required Api1CreateTableRequestApplicationJson $body,
})

Create a new table and return it.

Returns a Future containing a DynamiteResponse with the status code, deserialized body and headers. Throws a DynamiteApiException if the API call does not return an expected status code.

Status codes:

  • 200: Tables returned
  • 500

See:

Implementation

Future<_i1.DynamiteResponse<Table, void>> createTable({required Api1CreateTableRequestApplicationJson $body}) async {
  final _request = $createTable_Request(
    $body: $body,
  );
  final _streamedResponse = await _rootClient.httpClient.send(_request);
  final _response = await _i3.Response.fromStream(_streamedResponse);

  final _serializer = $createTable_Serializer();
  return _i1.ResponseConverter<Table, void>(_serializer).convert(_response);
}