/* Options: Date: 2025-05-05 08:06:33 Version: 8.61 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://prod-api-auth-mb-dhc.rapp-customers.co.uk //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: Authorisation.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class AuthorisationResponse implements IConvertible { String? status; String? GasUserId; String? Application; List? Roles; List? GSSNRetailerIds; String? DefaultGSSNRetailerId; String? DefaultVehicleType; String? DefaultRole; int? DefaultRoleCount; AuthorisationResponse({this.status,this.GasUserId,this.Application,this.Roles,this.GSSNRetailerIds,this.DefaultGSSNRetailerId,this.DefaultVehicleType,this.DefaultRole,this.DefaultRoleCount}); AuthorisationResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { status = json['status']; GasUserId = json['GasUserId']; Application = json['Application']; Roles = JsonConverters.fromJson(json['Roles'],'List',context!); GSSNRetailerIds = JsonConverters.fromJson(json['GSSNRetailerIds'],'List',context!); DefaultGSSNRetailerId = json['DefaultGSSNRetailerId']; DefaultVehicleType = json['DefaultVehicleType']; DefaultRole = json['DefaultRole']; DefaultRoleCount = json['DefaultRoleCount']; return this; } Map toJson() => { 'status': status, 'GasUserId': GasUserId, 'Application': Application, 'Roles': JsonConverters.toJson(Roles,'List',context!), 'GSSNRetailerIds': JsonConverters.toJson(GSSNRetailerIds,'List',context!), 'DefaultGSSNRetailerId': DefaultGSSNRetailerId, 'DefaultVehicleType': DefaultVehicleType, 'DefaultRole': DefaultRole, 'DefaultRoleCount': DefaultRoleCount }; getTypeName() => "AuthorisationResponse"; TypeContext? context = _ctx; } // @Route("/v1/authorisation", "Post") class Authorisation implements IReturn, IConvertible, IPost { String? GasUserId; List? ApplicationDotRole; List? GEMSOutletId; String? Application; Authorisation({this.GasUserId,this.ApplicationDotRole,this.GEMSOutletId,this.Application}); Authorisation.fromJson(Map json) { fromMap(json); } fromMap(Map json) { GasUserId = json['GasUserId']; ApplicationDotRole = JsonConverters.fromJson(json['ApplicationDotRole'],'List',context!); GEMSOutletId = JsonConverters.fromJson(json['GEMSOutletId'],'List',context!); Application = json['Application']; return this; } Map toJson() => { 'GasUserId': GasUserId, 'ApplicationDotRole': JsonConverters.toJson(ApplicationDotRole,'List',context!), 'GEMSOutletId': JsonConverters.toJson(GEMSOutletId,'List',context!), 'Application': Application }; createResponse() => AuthorisationResponse(); getResponseTypeName() => "AuthorisationResponse"; getTypeName() => "Authorisation"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'prod_api_auth_mb_dhc.rapp_customers.co.uk', types: { 'AuthorisationResponse': TypeInfo(TypeOf.Class, create:() => AuthorisationResponse()), 'Authorisation': TypeInfo(TypeOf.Class, create:() => Authorisation()), });