RuntimeConfig.fromJson constructor

RuntimeConfig.fromJson(
  1. Object? j
)

Implementation

factory RuntimeConfig.fromJson(Object? j) {
  final json = j as Map<String, Object?>;
  return RuntimeConfig(
    codeInterpreterRuntimeConfig:
        switch (json['codeInterpreterRuntimeConfig']) {
          null => null,
          Object $1 => RuntimeConfig_CodeInterpreterRuntimeConfig.fromJson(
            $1,
          ),
        },
    vertexAiSearchRuntimeConfig:
        switch (json['vertexAiSearchRuntimeConfig']) {
          null => null,
          Object $1 => RuntimeConfig_VertexAisearchRuntimeConfig.fromJson($1),
        },
    defaultParams: switch (json['defaultParams']) {
      null => null,
      Object $1 => protobuf.Struct.fromJson($1),
    },
  );
}