Firebase.AI.IFirebaseDeserializable

Interface to define a method to construct the object from a Dictionary.

Summary

The FirebaseAI Logic SDK by default will attempt to use reflection when deserializing objects, like in GenerateObjectResponse, but this allows developers to override that logic with their own.

Public functions

FromDictionary(IDictionary< string, object > dict)
void
Populate an object's fields with the given dictionary.

Public functions

FromDictionary

void FromDictionary(
  IDictionary< string, object > dict
)

Populate an object's fields with the given dictionary.

Details
Parameters
dict
A deserialized Json blob, received from the underlying model.