@override Object toJson() => { if (embeddings.isNotDefault) 'embeddings': [for (final i in embeddings) i.toJson()], };