/* Options: Date: 2024-11-21 11:53:58 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: MessageSendMethodQuery.* //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 MessageSendMethodQueryResponse 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; MessageSendMethodQueryResponse({this.Id,this.Name,this.Description}); MessageSendMethodQueryResponse.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() => "MessageSendMethodQueryResponse"; TypeContext? context = _ctx; } // @Route("/messages/templates/sendmethods", "GET") // @ApiResponse(Description="You were unauthorized to call this service", StatusCode=401) // @ValidateRequest(Validator="IsAuthenticated") class MessageSendMethodQuery extends QueryDb2 implements IReturn>, IConvertible, IGet { /** * The send method id. */ // @ApiMember(Description="The send method id.") int? Id; MessageSendMethodQuery({this.Id}); MessageSendMethodQuery.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() => "MessageSendMethodQuery"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'api.bokamera.se', types: { 'BaseModel': TypeInfo(TypeOf.Class, create:() => BaseModel()), 'SendMethod': TypeInfo(TypeOf.Class, create:() => SendMethod()), 'MessageSendMethodQueryResponse': TypeInfo(TypeOf.Class, create:() => MessageSendMethodQueryResponse()), 'QueryResponse': TypeInfo(TypeOf.Class, create:() => QueryResponse()), 'MessageSendMethodQuery': TypeInfo(TypeOf.Class, create:() => MessageSendMethodQuery()), 'List': TypeInfo(TypeOf.Class, create:() => []), });