open_api_data 3.0.0-b1
SDKdartflutter
Platformandroidioswindowslinuxmacosweb
Data structures for OpenAPI (Swagger) specification. Reads and writes JSON specifications.
open_api_dart
Reads and writes OpenAPI (Swagger) specifications.
Example
final file = new File("test/specs/kubernetes.json");
final contents = await file.readAsString();
final doc = new APIDocument.fromJSON(contents);
final output = JSON.encode(doc.asMap());