dco_decode_gemini_image_request method
Implementation
@protected GeminiImageRequest dco_decode_gemini_image_request(dynamic raw){ // Codec=Dco (DartCObject based), see doc to use other codecs
final arr = raw as List<dynamic>;
if (arr.length != 5) throw Exception('unexpected arr length: expect 5 but see ${arr.length}');
return GeminiImageRequest(model: dco_decode_String(arr[0]),
prompt: dco_decode_String(arr[1]),
systemPrompt: dco_decode_opt_String(arr[2]),
referenceImages: dco_decode_list_gemini_reference_image(arr[3]),
options: dco_decode_generation_options(arr[4]),); }