/* Options: Date: 2024-12-03 18:04:23 Version: 8.23 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://api.bokamera.se //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: NewsletterSendMethodQuery.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class BaseModel implements IConvertible { BaseModel(); BaseModel.fromJson(Map json) : super(); fromMap(Map json) { return this; } Map toJson() => {}; getTypeName() => "BaseModel"; TypeContext? context = _ctx; } class SendMethod extends BaseModel implements IConvertible { // @Required() String? Name; // @Required() String? Description; DateTime? ModifiedDate; int? Id; SendMethod({this.Name,this.Description,this.ModifiedDate,this.Id}); SendMethod.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); Name = json['Name']; Description = json['Description']; ModifiedDate = JsonConverters.fromJson(json['ModifiedDate'],'DateTime',context!); Id = json['Id']; return this; } Map toJson() => super.toJson()..addAll({ 'Name': Name, 'Description': Description, 'ModifiedDate': JsonConverters.toJson(ModifiedDate,'DateTime',context!), 'Id': Id }); getTypeName() => "SendMethod"; TypeContext? context = _ctx; } class NewsletterSendMethodQueryResponse implements IConvertible { /** * The send method id */ // @ApiMember(Description="The send method id") int? Id; /** * The send method name. */ // @ApiMember(Description="The send method name.") String? Name; /** * The send method description. */ // @ApiMember(Description="The send method description.") String? Description; NewsletterSendMethodQueryResponse({this.Id,this.Name,this.Description}); NewsletterSendMethodQueryResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Id = json['Id']; Name = json['Name']; Description = json['Description']; return this; } Map toJson() => { 'Id': Id, 'Name': Name, 'Description': Description }; getTypeName() => "NewsletterSendMethodQueryResponse"; TypeContext? context = _ctx; } // @Route("/newsletter/sendmethods", "GET") // @ApiResponse(Description="You were unauthorized to call this service", StatusCode=401) // @ValidateRequest(Validator="IsAuthenticated") class NewsletterSendMethodQuery extends QueryDb2 implements IReturn>, IConvertible, IGet { /** * The send method id. */ // @ApiMember(Description="The send method id.") int? Id; NewsletterSendMethodQuery({this.Id}); NewsletterSendMethodQuery.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); Id = json['Id']; return this; } Map toJson() => super.toJson()..addAll({ 'Id': Id }); createResponse() => QueryResponse(); getResponseTypeName() => "QueryResponse"; getTypeName() => "NewsletterSendMethodQuery"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'api.bokamera.se', types: { 'BaseModel': TypeInfo(TypeOf.Class, create:() => BaseModel()), 'SendMethod': TypeInfo(TypeOf.Class, create:() => SendMethod()), 'NewsletterSendMethodQueryResponse': TypeInfo(TypeOf.Class, create:() => NewsletterSendMethodQueryResponse()), 'QueryResponse': TypeInfo(TypeOf.Class, create:() => QueryResponse()), 'NewsletterSendMethodQuery': TypeInfo(TypeOf.Class, create:() => NewsletterSendMethodQuery()), 'List': TypeInfo(TypeOf.Class, create:() => []), });