/* Options: Date: 2024-09-19 17:38:55 Version: 8.22 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://support.bettor-dual-stage.webhop.biz //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: RequestSupport.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class BettingApp implements IConvertible { String? name; String? version; BettingApp({this.name,this.version}); BettingApp.fromJson(Map json) { fromMap(json); } fromMap(Map json) { name = json['name']; version = json['version']; return this; } Map toJson() => { 'name': name, 'version': version }; getTypeName() => "BettingApp"; TypeContext? context = _ctx; } class Ref implements IConvertible { String? id; String? val; Ref({this.id,this.val}); Ref.fromJson(Map json) { fromMap(json); } fromMap(Map json) { id = json['id']; val = json['val']; return this; } Map toJson() => { 'id': id, 'val': val }; getTypeName() => "Ref"; TypeContext? context = _ctx; } class Origin implements IConvertible { BettingApp? application; String? ip; Ref? organization; Ref? region; Ref? locationGroup; Ref? location; Ref? device; Ref? clerk; Origin({this.application,this.ip,this.organization,this.region,this.locationGroup,this.location,this.device,this.clerk}); Origin.fromJson(Map json) { fromMap(json); } fromMap(Map json) { application = JsonConverters.fromJson(json['application'],'BettingApp',context!); ip = json['ip']; organization = JsonConverters.fromJson(json['organization'],'Ref',context!); region = JsonConverters.fromJson(json['region'],'Ref',context!); locationGroup = JsonConverters.fromJson(json['locationGroup'],'Ref',context!); location = JsonConverters.fromJson(json['location'],'Ref',context!); device = JsonConverters.fromJson(json['device'],'Ref',context!); clerk = JsonConverters.fromJson(json['clerk'],'Ref',context!); return this; } Map toJson() => { 'application': JsonConverters.toJson(application,'BettingApp',context!), 'ip': ip, 'organization': JsonConverters.toJson(organization,'Ref',context!), 'region': JsonConverters.toJson(region,'Ref',context!), 'locationGroup': JsonConverters.toJson(locationGroup,'Ref',context!), 'location': JsonConverters.toJson(location,'Ref',context!), 'device': JsonConverters.toJson(device,'Ref',context!), 'clerk': JsonConverters.toJson(clerk,'Ref',context!) }; getTypeName() => "Origin"; TypeContext? context = _ctx; } // @Route("/support/request", "POST") class RequestSupport implements IReturn, IConvertible, IPost { Origin? origin; RequestSupport({this.origin}); RequestSupport.fromJson(Map json) { fromMap(json); } fromMap(Map json) { origin = JsonConverters.fromJson(json['origin'],'Origin',context!); return this; } Map toJson() => { 'origin': JsonConverters.toJson(origin,'Origin',context!) }; createResponse() => ResponseStatus(); getResponseTypeName() => "ResponseStatus"; getTypeName() => "RequestSupport"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'support.bettor_dual_stage.webhop.biz', types: { 'BettingApp': TypeInfo(TypeOf.Class, create:() => BettingApp()), 'Ref': TypeInfo(TypeOf.Class, create:() => Ref()), 'Origin': TypeInfo(TypeOf.Class, create:() => Origin()), 'RequestSupport': TypeInfo(TypeOf.Class, create:() => RequestSupport()), });