GoogleSearchRetrieval.fromJson constructor

GoogleSearchRetrieval.fromJson(
  1. Object? j
)

Implementation

factory GoogleSearchRetrieval.fromJson(Object? j) {
  final json = j as Map<String, Object?>;
  return GoogleSearchRetrieval(
    dynamicRetrievalConfig: switch (json['dynamicRetrievalConfig']) {
      null => null,
      Object $1 => DynamicRetrievalConfig.fromJson($1),
    },
  );
}