/* Options: Date: 2024-09-19 03:00:00 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: SubscribedToNewsletter.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; abstract class ICompany { String? CompanyId; } // @Route("/newsletter/subscribe", "GET") // @ApiResponse(Description="You were unauthorized to call this service", StatusCode=401) class SubscribedToNewsletter implements IReturn>, ICompany, IConvertible, IGet { /** * The company id, if empty will use the company id for the user you are logged in with. */ // @ApiMember(Description="The company id, if empty will use the company id for the user you are logged in with.") String? CompanyId; /** * The customer email. */ // @ApiMember(Description="The customer email.", IsRequired=true) String? Email; SubscribedToNewsletter({this.CompanyId,this.Email}); SubscribedToNewsletter.fromJson(Map json) { fromMap(json); } fromMap(Map json) { CompanyId = json['CompanyId']; Email = json['Email']; return this; } Map toJson() => { 'CompanyId': CompanyId, 'Email': Email }; createResponse() => []; getResponseTypeName() => "List"; getTypeName() => "SubscribedToNewsletter"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'testapi.bokamera.se', types: { 'ICompany': TypeInfo(TypeOf.Interface), 'SubscribedToNewsletter': TypeInfo(TypeOf.Class, create:() => SubscribedToNewsletter()), });