ReasoningEngineSpec_BuildSpec.fromJson constructor

ReasoningEngineSpec_BuildSpec.fromJson(
  1. Object? j
)

Implementation

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