makeSwaggerFile function

AnyFile makeSwaggerFile(
  1. Map<String, dynamic> spec,
  2. OutputFormat format
)

Implementation

AnyFile makeSwaggerFile(Map<String, dynamic> spec, OutputFormat format) {
  final (content, extension) = _formatSpec(spec, format);

  return AnyFile(basename: 'swagger', extension: extension, content: content);
}