/** * ------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. * See License in the project root for license information. * ------------------------------------------------------------------------------------------- */ import { MultipartSerializationWriter } from "./multipartSerializationWriter.js"; export class MultipartSerializationWriterFactory { getValidContentType() { return "multipart/form-data"; } getSerializationWriter(contentType) { if (!contentType) { throw new Error("content type cannot be undefined or empty"); } else if (this.getValidContentType() !== contentType) { throw new Error(`expected a ${this.getValidContentType()} content type`); } return new MultipartSerializationWriter(); } } //# sourceMappingURL=multipartSerializationWriterFactory.js.map