generate method
Generates an InspiroBot image, completing with the image URL.
May throw a SocketException
when network connectivity issues occur.
Implementation
Future<Uri> generate({bool christmas = false}) async {
final urlString = await _makeApiRequest({
'generate': 'true',
if (christmas) 'season': 'xmas',
});
return Uri.parse(urlString);
}