create method
Create a database.
See more at https://developers.notion.com/reference/create-a-database
Implementation
Future<NotionResponse> create(Database database) async {
http.Response res = await http.post(
Uri.https(host, '/$v/$path'),
body: jsonEncode(database.toJson()),
headers: {
'Authorization': 'Bearer $token',
'Notion-Version': dateVersion,
'Content-Type': 'application/json',
},
);
return NotionResponse.fromResponse(res);
}