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