Skip to content
pubscout

swagger_to_dart

6.0.0, released 7 weeks ago by matheer.com

Generates freezed models and retrofit API clients from OpenAPI 3.x, Swagger 2.0, Postman collections and JSON Schema, in JSON or YAML.

$ flutter pub add swagger_to_dart
Source repository

What it does

This is the author's description from pub.dev. A fuller summary with use cases and trade-offs is in the queue and usually appears within a day or two.

Setup

Kind
Pure Dart
Code generation
Yes (build_runner)
Direct dependencies
10

Alternatives

Packages that do the same job and could replace swagger_to_dart.

  • json_schema

    Validate JSON data against JSON Schema drafts in Dart.

  • json_schema_builder

    Build and validate JSON Schemas in Dart with a fluent, type‑safe API

  • uuid_type

    Provides UUID parsing, generation (v1, v4, v5) and comparison for Dart.

  • acronym

    A simple package to generate acronyms from strings with support for stop words and syllables.

Works with

Packages commonly used together with swagger_to_dart: ones it builds on, ones built on it, and its own family.