A framework for building convergent cross-platform Nextcloud clients using Flutter.
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
import 'package:dynamite/src/models/components.dart';
|
|
|
|
import 'package:dynamite/src/models/info.dart';
|
|
|
|
import 'package:dynamite/src/models/path_item.dart';
|
|
|
|
import 'package:dynamite/src/models/paths.dart';
|
|
|
|
import 'package:dynamite/src/models/security_requirement.dart';
|
|
|
|
import 'package:dynamite/src/models/server.dart';
|
|
|
|
import 'package:dynamite/src/models/tag.dart';
|
|
|
|
import 'package:json_annotation/json_annotation.dart';
|
|
|
|
|
|
|
|
part 'open_api.g.dart';
|
|
|
|
|
|
|
|
@JsonSerializable()
|
|
|
|
class OpenAPI {
|
|
|
|
OpenAPI({
|
|
|
|
required this.version,
|
|
|
|
required this.info,
|
|
|
|
this.servers,
|
|
|
|
this.security,
|
|
|
|
this.tags,
|
|
|
|
this.components,
|
|
|
|
this.paths,
|
|
|
|
});
|
|
|
|
|
|
|
|
factory OpenAPI.fromJson(final Map<String, dynamic> json) => _$OpenAPIFromJson(json);
|
|
|
|
Map<String, dynamic> toJson() => _$OpenAPIToJson(this);
|
|
|
|
|
|
|
|
@JsonKey(name: 'openapi')
|
|
|
|
final String version;
|
|
|
|
|
|
|
|
final Info info;
|
|
|
|
|
|
|
|
final List<Server>? servers;
|
|
|
|
|
|
|
|
final List<SecurityRequirement>? security;
|
|
|
|
|
|
|
|
final List<Tag>? tags;
|
|
|
|
|
|
|
|
final Components? components;
|
|
|
|
|
|
|
|
final Paths? paths;
|
|
|
|
}
|