/* Options: Date: 2024-12-23 11:26:31 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: TrackAppUsedRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ library ConsumerApi; import 'package:servicestack/servicestack.dart'; class TrackAppUsedResponse implements IConvertible { bool? success; TrackAppUsedResponse({this.success}); TrackAppUsedResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { success = json['success']; return this; } Map toJson() => { 'success': success }; getTypeName() => "TrackAppUsedResponse"; TypeContext? context = _ctx; } // @Route("/track/usage", "POST") class TrackAppUsedRequest implements IReturn, IPost, IConvertible { DateTime? openedAt; DateTime? closedAt; TrackAppUsedRequest({this.openedAt,this.closedAt}); TrackAppUsedRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { openedAt = JsonConverters.fromJson(json['openedAt'],'DateTime',context!); closedAt = JsonConverters.fromJson(json['closedAt'],'DateTime',context!); return this; } Map toJson() => { 'openedAt': JsonConverters.toJson(openedAt,'DateTime',context!), 'closedAt': JsonConverters.toJson(closedAt,'DateTime',context!) }; createResponse() => TrackAppUsedResponse(); getResponseTypeName() => "TrackAppUsedResponse"; getTypeName() => "TrackAppUsedRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'ConsumerApi', types: { 'TrackAppUsedResponse': TypeInfo(TypeOf.Class, create:() => TrackAppUsedResponse()), 'TrackAppUsedRequest': TypeInfo(TypeOf.Class, create:() => TrackAppUsedRequest()), });