/* Options: Date: 2024-07-03 12:30:58 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: BookingStatusQuery.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class BaseModel implements IConvertible { BaseModel(); BaseModel.fromJson(Map json) : super(); fromMap(Map json) { return this; } Map toJson() => {}; getTypeName() => "BaseModel"; TypeContext? context = _ctx; } class BookingStatus extends BaseModel implements IConvertible { // @Required() String? Name; // @Required() String? Description; // @Required() String? Color; // @Required() String? Icon; DateTime? ModifiedDate; int? Id; BookingStatus({this.Name,this.Description,this.Color,this.Icon,this.ModifiedDate,this.Id}); BookingStatus.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); Name = json['Name']; Description = json['Description']; Color = json['Color']; Icon = json['Icon']; ModifiedDate = JsonConverters.fromJson(json['ModifiedDate'],'DateTime',context!); Id = json['Id']; return this; } Map toJson() => super.toJson()..addAll({ 'Name': Name, 'Description': Description, 'Color': Color, 'Icon': Icon, 'ModifiedDate': JsonConverters.toJson(ModifiedDate,'DateTime',context!), 'Id': Id }); getTypeName() => "BookingStatus"; TypeContext? context = _ctx; } class BookingStatusQueryResponse implements IConvertible { int? Id; String? Name; String? Description; String? Icon; String? Color; BookingStatusQueryResponse({this.Id,this.Name,this.Description,this.Icon,this.Color}); BookingStatusQueryResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Id = json['Id']; Name = json['Name']; Description = json['Description']; Icon = json['Icon']; Color = json['Color']; return this; } Map toJson() => { 'Id': Id, 'Name': Name, 'Description': Description, 'Icon': Icon, 'Color': Color }; getTypeName() => "BookingStatusQueryResponse"; TypeContext? context = _ctx; } // @Route("/bookings/status", "GET") // @ApiResponse(Description="You were unauthorized to call this service", StatusCode=401) class BookingStatusQuery extends QueryDb2 implements IReturn>, IConvertible, IGet { BookingStatusQuery(); BookingStatusQuery.fromJson(Map json) : super.fromJson(json); fromMap(Map json) { super.fromMap(json); return this; } Map toJson() => super.toJson(); createResponse() => QueryResponse(); getResponseTypeName() => "QueryResponse"; getTypeName() => "BookingStatusQuery"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'api.bokamera.se', types: { 'BaseModel': TypeInfo(TypeOf.Class, create:() => BaseModel()), 'BookingStatus': TypeInfo(TypeOf.Class, create:() => BookingStatus()), 'BookingStatusQueryResponse': TypeInfo(TypeOf.Class, create:() => BookingStatusQueryResponse()), 'QueryResponse': TypeInfo(TypeOf.Class, create:() => QueryResponse()), 'BookingStatusQuery': TypeInfo(TypeOf.Class, create:() => BookingStatusQuery()), 'List': TypeInfo(TypeOf.Class, create:() => []), });