ThinkingConfig.fromJson constructor

ThinkingConfig.fromJson(
  1. Object? j
)

Implementation

factory ThinkingConfig.fromJson(Object? j) {
  final json = j as Map<String, Object?>;
  return ThinkingConfig(
    includeThoughts: switch (json['includeThoughts']) {
      null => null,
      Object $1 => decodeBool($1),
    },
    thinkingBudget: switch (json['thinkingBudget']) {
      null => null,
      Object $1 => decodeInt($1),
    },
  );
}