dart2-v3template.apilib.mustache Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of openapi-dart-generator Show documentation
Show all versions of openapi-dart-generator Show documentation
dart2 generator from openapi 3.x spec files.
library {{pubName}}.api;
{{#pubDescription}}
/// {{{.}}}
{{/pubDescription}}
import 'dart:async';
import 'dart:convert';
import 'package:dio/dio.dart';
import 'package:openapi_dart_common/openapi.dart';
import 'package:collection/collection.dart';
{{#x-dart-imports}}
import '{{{.}}}';
{{/x-dart-imports}}
part 'api_client.dart';
{{#apiInfo}}{{#apis}}part 'api/{{classFilename}}.dart';
{{/apis}}{{/apiInfo}}
{{#models}}{{#model}}part 'model/{{classFilename}}.dart';
{{/model}}{{/models}}
{{#x-dart-parts}}
part '{{{.}}}';
{{/x-dart-parts}}