/* Options: Date: 2024-07-03 12:46: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: CreateEaccountingNote.* //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", "POST") class CreateEaccountingNote implements IReturn, ICompany, IConvertible, IPost { String? Text; String? CompanyId; CreateEaccountingNote({this.Text,this.CompanyId}); CreateEaccountingNote.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Text = json['Text']; CompanyId = json['CompanyId']; return this; } Map toJson() => { 'Text': Text, 'CompanyId': CompanyId }; createResponse() => NoteQueryResponse(); getResponseTypeName() => "NoteQueryResponse"; getTypeName() => "CreateEaccountingNote"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'api.bokamera.se', types: { 'ICompany': TypeInfo(TypeOf.Interface), 'NoteQueryResponse': TypeInfo(TypeOf.Class, create:() => NoteQueryResponse()), 'CreateEaccountingNote': TypeInfo(TypeOf.Class, create:() => CreateEaccountingNote()), });