/* Options: Date: 2024-12-03 18:19:09 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: UserAgreementQuery.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class UserAgreementQueryResponse implements IConvertible { String? UserId; String? AgreementId; DateTime? UserAgreementCreated; bool? AgreedToLatest; List? Documents; dynamic? ResponseStatus; UserAgreementQueryResponse({this.UserId,this.AgreementId,this.UserAgreementCreated,this.AgreedToLatest,this.Documents,this.ResponseStatus}); UserAgreementQueryResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { UserId = json['UserId']; AgreementId = json['AgreementId']; UserAgreementCreated = JsonConverters.fromJson(json['UserAgreementCreated'],'DateTime',context!); AgreedToLatest = json['AgreedToLatest']; Documents = JsonConverters.fromJson(json['Documents'],'List',context!); ResponseStatus = JsonConverters.fromJson(json['ResponseStatus'],'dynamic',context!); return this; } Map toJson() => { 'UserId': UserId, 'AgreementId': AgreementId, 'UserAgreementCreated': JsonConverters.toJson(UserAgreementCreated,'DateTime',context!), 'AgreedToLatest': AgreedToLatest, 'Documents': JsonConverters.toJson(Documents,'List',context!), 'ResponseStatus': JsonConverters.toJson(ResponseStatus,'dynamic',context!) }; getTypeName() => "UserAgreementQueryResponse"; TypeContext? context = _ctx; } // @Route("/users/agreement", "GET") // @ApiResponse(Description="Returned if there is a validation error on the input parameters", StatusCode=400) // @ApiResponse(Description="Returned if the current user is not allowed to perform the action", StatusCode=401) // @ValidateRequest(Validator="IsAuthenticated") class UserAgreementQuery implements IReturn, IConvertible, IGet { String? UserId; UserAgreementQuery({this.UserId}); UserAgreementQuery.fromJson(Map json) { fromMap(json); } fromMap(Map json) { UserId = json['UserId']; return this; } Map toJson() => { 'UserId': UserId }; createResponse() => UserAgreementQueryResponse(); getResponseTypeName() => "UserAgreementQueryResponse"; getTypeName() => "UserAgreementQuery"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'api.bokamera.se', types: { 'UserAgreementQueryResponse': TypeInfo(TypeOf.Class, create:() => UserAgreementQueryResponse()), 'UserAgreementQuery': TypeInfo(TypeOf.Class, create:() => UserAgreementQuery()), });