@override Object toJson() { return {if (embeddings.isNotDefault) 'embeddings': encodeList(embeddings)}; }