/* Options: Date: 2024-12-23 12:13:51 Version: 8.0 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://consumer-api.brovs.com //GlobalNamespace: ConsumerApi //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: StatusRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ library ConsumerApi; import 'package:servicestack/servicestack.dart'; class StatusResponse implements IConvertible { bool? databaseConnectionOk; bool? searchConnectionOk; String? deployedVersion; DateTime? deployedAt; StatusResponse({this.databaseConnectionOk,this.searchConnectionOk,this.deployedVersion,this.deployedAt}); StatusResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { databaseConnectionOk = json['databaseConnectionOk']; searchConnectionOk = json['searchConnectionOk']; deployedVersion = json['deployedVersion']; deployedAt = JsonConverters.fromJson(json['deployedAt'],'DateTime',context!); return this; } Map toJson() => { 'databaseConnectionOk': databaseConnectionOk, 'searchConnectionOk': searchConnectionOk, 'deployedVersion': deployedVersion, 'deployedAt': JsonConverters.toJson(deployedAt,'DateTime',context!) }; getTypeName() => "StatusResponse"; TypeContext? context = _ctx; } // @Route("/status", "GET") class StatusRequest implements IReturn, IGet, IConvertible { StatusRequest(); StatusRequest.fromJson(Map json) : super(); fromMap(Map json) { return this; } Map toJson() => {}; createResponse() => StatusResponse(); getResponseTypeName() => "StatusResponse"; getTypeName() => "StatusRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'ConsumerApi', types: { 'StatusResponse': TypeInfo(TypeOf.Class, create:() => StatusResponse()), 'StatusRequest': TypeInfo(TypeOf.Class, create:() => StatusRequest()), });