Future<void> sendJson(Object object) async { await send('application/json', Uint8List.fromList(utf8.encode(jsonEncode(object)))); }