/* Options: Date: 2024-12-23 11:43:44 Version: 8.0 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://consumer-api.brovs.com //GlobalNamespace: ConsumerApi //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: LogFrontEndEventRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ library ConsumerApi; import 'package:servicestack/servicestack.dart'; class LogFrontEndEventResponse implements IConvertible { DateTime? loggedAt; LogFrontEndEventResponse({this.loggedAt}); LogFrontEndEventResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { loggedAt = JsonConverters.fromJson(json['loggedAt'],'DateTime',context!); return this; } Map toJson() => { 'loggedAt': JsonConverters.toJson(loggedAt,'DateTime',context!) }; getTypeName() => "LogFrontEndEventResponse"; TypeContext? context = _ctx; } // @Route("/log/event", "POST") class LogFrontEndEventRequest implements IReturn, IPost, IConvertible { // @Validate(Validator="NotEmpty") // @Validate(Validator="MaximumLength(256)") String? location; // @Validate(Validator="NotEmpty") // @Validate(Validator="MaximumLength(128)") String? tag; // @Validate(Validator="NotEmpty") // @Validate(Validator="MaximumLength(512)") String? message; LogFrontEndEventRequest({this.location,this.tag,this.message}); LogFrontEndEventRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { location = json['location']; tag = json['tag']; message = json['message']; return this; } Map toJson() => { 'location': location, 'tag': tag, 'message': message }; createResponse() => LogFrontEndEventResponse(); getResponseTypeName() => "LogFrontEndEventResponse"; getTypeName() => "LogFrontEndEventRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'ConsumerApi', types: { 'LogFrontEndEventResponse': TypeInfo(TypeOf.Class, create:() => LogFrontEndEventResponse()), 'LogFrontEndEventRequest': TypeInfo(TypeOf.Class, create:() => LogFrontEndEventRequest()), });