toJson method
Implementation
Map<String, dynamic> toJson() => {
'image': image.toJson(),
'prompt': prompt,
if (mask != null) 'mask': mask!.toJson(),
if (model != null) 'model': model,
if (count != null) 'n': count,
if (size != null) 'size': size,
if (responseFormat != null) 'response_format': responseFormat,
if (user != null) 'user': user,
};