/* Options: Date: 2024-11-23 10:27:45 Version: 8.23 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://testapi.bokamera.se //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: ApiVersionQuery.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class ApiVersionQueryResponse implements IConvertible { /** * Timestamp when this API was built */ DateTime? BuildTime; /** * The revision id from which the API was built */ String? Sha; /** * Full version information regarding the current running assemblies of the api */ String? InformationalVersion; /** * The semantic version number of the current running api version, see www.semver.org for more information */ String? SemVer; ResponseStatus? ResponseStatus; ApiVersionQueryResponse({this.BuildTime,this.Sha,this.InformationalVersion,this.SemVer,this.ResponseStatus}); ApiVersionQueryResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { BuildTime = JsonConverters.fromJson(json['BuildTime'],'DateTime',context!); Sha = json['Sha']; InformationalVersion = json['InformationalVersion']; SemVer = json['SemVer']; ResponseStatus = JsonConverters.fromJson(json['ResponseStatus'],'ResponseStatus',context!); return this; } Map toJson() => { 'BuildTime': JsonConverters.toJson(BuildTime,'DateTime',context!), 'Sha': Sha, 'InformationalVersion': InformationalVersion, 'SemVer': SemVer, 'ResponseStatus': JsonConverters.toJson(ResponseStatus,'ResponseStatus',context!) }; getTypeName() => "ApiVersionQueryResponse"; TypeContext? context = _ctx; } // @Route("/version", "GET") class ApiVersionQuery implements IReturn, IConvertible, IGet { ApiVersionQuery(); ApiVersionQuery.fromJson(Map json) : super(); fromMap(Map json) { return this; } Map toJson() => {}; createResponse() => ApiVersionQueryResponse(); getResponseTypeName() => "ApiVersionQueryResponse"; getTypeName() => "ApiVersionQuery"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'testapi.bokamera.se', types: { 'ApiVersionQueryResponse': TypeInfo(TypeOf.Class, create:() => ApiVersionQueryResponse()), 'ApiVersionQuery': TypeInfo(TypeOf.Class, create:() => ApiVersionQuery()), });