/* Options: Date: 2024-11-21 11:35:25 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: AgreementQuery.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class AgreementQueryResponse implements IConvertible { String? AgreementId; DateTime? AgreementCreated; List? Documents; dynamic? ResponseStatus; AgreementQueryResponse({this.AgreementId,this.AgreementCreated,this.Documents,this.ResponseStatus}); AgreementQueryResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { AgreementId = json['AgreementId']; AgreementCreated = JsonConverters.fromJson(json['AgreementCreated'],'DateTime',context!); Documents = JsonConverters.fromJson(json['Documents'],'List',context!); ResponseStatus = JsonConverters.fromJson(json['ResponseStatus'],'dynamic',context!); return this; } Map toJson() => { 'AgreementId': AgreementId, 'AgreementCreated': JsonConverters.toJson(AgreementCreated,'DateTime',context!), 'Documents': JsonConverters.toJson(Documents,'List',context!), 'ResponseStatus': JsonConverters.toJson(ResponseStatus,'dynamic',context!) }; getTypeName() => "AgreementQueryResponse"; TypeContext? context = _ctx; } // @Route("/agreements", "GET") // @ApiResponse(Description="Returned if there is a validation error on the input parameters", StatusCode=400) class AgreementQuery implements IReturn, IConvertible, IGet { AgreementQuery(); AgreementQuery.fromJson(Map json) : super(); fromMap(Map json) { return this; } Map toJson() => {}; createResponse() => AgreementQueryResponse(); getResponseTypeName() => "AgreementQueryResponse"; getTypeName() => "AgreementQuery"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'api.bokamera.se', types: { 'AgreementQueryResponse': TypeInfo(TypeOf.Class, create:() => AgreementQueryResponse()), 'AgreementQuery': TypeInfo(TypeOf.Class, create:() => AgreementQuery()), });