dco_decode_gemini_image_response method
Implementation
@protected GeminiImageResponse dco_decode_gemini_image_response(dynamic raw){ // Codec=Dco (DartCObject based), see doc to use other codecs
final arr = raw as List<dynamic>;
if (arr.length != 4) throw Exception('unexpected arr length: expect 4 but see ${arr.length}');
return GeminiImageResponse(model: dco_decode_opt_String(arr[0]),
text: dco_decode_list_String(arr[1]),
images: dco_decode_list_generated_image(arr[2]),
rawJson: dco_decode_opt_String(arr[3]),); }