/* Options: Date: 2024-11-21 11:29:16 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: CreateUserAgreement.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class CreateUserAgreementResponse implements IConvertible { String? UserId; String? AgreementId; DateTime? UserAgreementCreated; dynamic? ResponseStatus; CreateUserAgreementResponse({this.UserId,this.AgreementId,this.UserAgreementCreated,this.ResponseStatus}); CreateUserAgreementResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { UserId = json['UserId']; AgreementId = json['AgreementId']; UserAgreementCreated = JsonConverters.fromJson(json['UserAgreementCreated'],'DateTime',context!); ResponseStatus = JsonConverters.fromJson(json['ResponseStatus'],'dynamic',context!); return this; } Map toJson() => { 'UserId': UserId, 'AgreementId': AgreementId, 'UserAgreementCreated': JsonConverters.toJson(UserAgreementCreated,'DateTime',context!), 'ResponseStatus': JsonConverters.toJson(ResponseStatus,'dynamic',context!) }; getTypeName() => "CreateUserAgreementResponse"; TypeContext? context = _ctx; } // @Route("/users/agreement", "POST") // @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 CreateUserAgreement implements IReturn, IConvertible, IPost { String? UserId; String? AgreementId; CreateUserAgreement({this.UserId,this.AgreementId}); CreateUserAgreement.fromJson(Map json) { fromMap(json); } fromMap(Map json) { UserId = json['UserId']; AgreementId = json['AgreementId']; return this; } Map toJson() => { 'UserId': UserId, 'AgreementId': AgreementId }; createResponse() => CreateUserAgreementResponse(); getResponseTypeName() => "CreateUserAgreementResponse"; getTypeName() => "CreateUserAgreement"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'api.bokamera.se', types: { 'CreateUserAgreementResponse': TypeInfo(TypeOf.Class, create:() => CreateUserAgreementResponse()), 'CreateUserAgreement': TypeInfo(TypeOf.Class, create:() => CreateUserAgreement()), });