Converts this server to a JSON map.
Map<String, dynamic> toJson() => { 'url': url, 'username': username, 'credential': credential, };