update method
Implementation
Future<Map<String, dynamic>> update(String id, Map<String, dynamic> server) async {
final url = Uri.parse('${baseUrl}api/servers/$id');
final response = await client.put(url, body: jsonEncode(server));
if (response.statusCode != 200) {
throw MailosaurError(response);
}
return jsonDecode(response.body);
}