ToolUseExample_ExtensionOperation.fromJson constructor

ToolUseExample_ExtensionOperation.fromJson(
  1. Object? j
)

Implementation

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