dco_decode_gemini_image_response method

  1. @protected
GeminiImageResponse dco_decode_gemini_image_response(
  1. dynamic raw
)
override

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]),); }