/* Options: Date: 2024-12-03 18:17:07 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: EaccountingNoteQuery.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; abstract class ICompany { String? CompanyId; } class NoteQueryResponse implements IConvertible { String? Id; String? Text; DateTime? CreatedUtc; DateTime? ModifiedUtc; NoteQueryResponse({this.Id,this.Text,this.CreatedUtc,this.ModifiedUtc}); NoteQueryResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Id = json['Id']; Text = json['Text']; CreatedUtc = JsonConverters.fromJson(json['CreatedUtc'],'DateTime',context!); ModifiedUtc = JsonConverters.fromJson(json['ModifiedUtc'],'DateTime',context!); return this; } Map toJson() => { 'Id': Id, 'Text': Text, 'CreatedUtc': JsonConverters.toJson(CreatedUtc,'DateTime',context!), 'ModifiedUtc': JsonConverters.toJson(ModifiedUtc,'DateTime',context!) }; getTypeName() => "NoteQueryResponse"; TypeContext? context = _ctx; } // @Route("/eaccounting/notes", "GET") class EaccountingNoteQuery implements IReturn, ICompany, IConvertible, IGet { String? CompanyId; EaccountingNoteQuery({this.CompanyId}); EaccountingNoteQuery.fromJson(Map json) { fromMap(json); } fromMap(Map json) { CompanyId = json['CompanyId']; return this; } Map toJson() => { 'CompanyId': CompanyId }; createResponse() => NoteQueryResponse(); getResponseTypeName() => "NoteQueryResponse"; getTypeName() => "EaccountingNoteQuery"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'api.bokamera.se', types: { 'ICompany': TypeInfo(TypeOf.Interface), 'NoteQueryResponse': TypeInfo(TypeOf.Class, create:() => NoteQueryResponse()), 'EaccountingNoteQuery': TypeInfo(TypeOf.Class, create:() => EaccountingNoteQuery()), });