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