/* Options: Date: 2025-12-06 08:52:58 Version: 8.0 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://cochraneplus-api-dev.happen.zone //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: Test.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class TestResult implements IConvertible { bool? wasSuccessful; String? description; TestResult({this.wasSuccessful,this.description}); TestResult.fromJson(Map json) { fromMap(json); } fromMap(Map json) { wasSuccessful = json['wasSuccessful']; description = json['description']; return this; } Map toJson() => { 'wasSuccessful': wasSuccessful, 'description': description }; getTypeName() => "TestResult"; TypeContext? context = _ctx; } class TestResponse implements IConvertible { String? environment; Map? tests; bool? wasSuccessful; String? db; TestResponse({this.environment,this.tests,this.wasSuccessful,this.db}); TestResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { environment = json['environment']; tests = JsonConverters.fromJson(json['tests'],'Map',context!); wasSuccessful = json['wasSuccessful']; db = json['db']; return this; } Map toJson() => { 'environment': environment, 'tests': JsonConverters.toJson(tests,'Map',context!), 'wasSuccessful': wasSuccessful, 'db': db }; getTypeName() => "TestResponse"; TypeContext? context = _ctx; } // @Route("/test", "GET") class Test implements IReturn, IConvertible, IGet { /** * An email address a test email will be sent to */ // @ApiMember(Description="An email address a test email will be sent to") String? smtp; Test({this.smtp}); Test.fromJson(Map json) { fromMap(json); } fromMap(Map json) { smtp = json['smtp']; return this; } Map toJson() => { 'smtp': smtp }; createResponse() => TestResponse(); getResponseTypeName() => "TestResponse"; getTypeName() => "Test"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'cochraneplus_api_dev.happen.zone', types: { 'TestResult': TypeInfo(TypeOf.Class, create:() => TestResult()), 'TestResponse': TypeInfo(TypeOf.Class, create:() => TestResponse()), 'Map': TypeInfo(TypeOf.Class, create:() => Map()), 'Test': TypeInfo(TypeOf.Class, create:() => Test()), });