/* Options: Date: 2024-12-15 21:01:45 Version: 6.10 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://staging-api.billiecart.com.au //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: DistributeContributionRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; abstract class PostOperationUnTenanted implements IPost { PostOperationUnTenanted(); PostOperationUnTenanted.fromJson(Map json) : super(); fromMap(Map json) { return this; } Map toJson() => {}; getTypeName() => "PostOperationUnTenanted<$TResponse>"; TypeContext? context = _ctx; } abstract class PostOperationTenanted extends PostOperationUnTenanted implements ITenantedRequest { String? organisationId; PostOperationTenanted({this.organisationId}); PostOperationTenanted.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); organisationId = json['organisationId']; return this; } Map toJson() => super.toJson()..addAll({ 'organisationId': organisationId }); getTypeName() => "PostOperationTenanted<$TResponse>"; TypeContext? context = _ctx; } abstract class ITenantedRequest { String? organisationId; } class SalarySacrificeBreakdown implements IConvertible { double? leaseAmount; double? administrationFee; double? fuel; double? servicing; double? tyres; double? insurance; double? carWash; double? registration; double? roadSideAssistance; double? anythingExtra; SalarySacrificeBreakdown({this.leaseAmount,this.administrationFee,this.fuel,this.servicing,this.tyres,this.insurance,this.carWash,this.registration,this.roadSideAssistance,this.anythingExtra}); SalarySacrificeBreakdown.fromJson(Map json) { fromMap(json); } fromMap(Map json) { leaseAmount = JsonConverters.toDouble(json['leaseAmount']); administrationFee = JsonConverters.toDouble(json['administrationFee']); fuel = JsonConverters.toDouble(json['fuel']); servicing = JsonConverters.toDouble(json['servicing']); tyres = JsonConverters.toDouble(json['tyres']); insurance = JsonConverters.toDouble(json['insurance']); carWash = JsonConverters.toDouble(json['carWash']); registration = JsonConverters.toDouble(json['registration']); roadSideAssistance = JsonConverters.toDouble(json['roadSideAssistance']); anythingExtra = JsonConverters.toDouble(json['anythingExtra']); return this; } Map toJson() => { 'leaseAmount': leaseAmount, 'administrationFee': administrationFee, 'fuel': fuel, 'servicing': servicing, 'tyres': tyres, 'insurance': insurance, 'carWash': carWash, 'registration': registration, 'roadSideAssistance': roadSideAssistance, 'anythingExtra': anythingExtra }; getTypeName() => "SalarySacrificeBreakdown"; TypeContext? context = _ctx; } class ContributionSalaryPackage implements IIdentifiableResource, IConvertible { double? preTaxDeduction; double? postTaxDeduction; SalarySacrificeBreakdown? salarySacrificeBreakdown; String? id; ContributionSalaryPackage({this.preTaxDeduction,this.postTaxDeduction,this.salarySacrificeBreakdown,this.id}); ContributionSalaryPackage.fromJson(Map json) { fromMap(json); } fromMap(Map json) { preTaxDeduction = JsonConverters.toDouble(json['preTaxDeduction']); postTaxDeduction = JsonConverters.toDouble(json['postTaxDeduction']); salarySacrificeBreakdown = JsonConverters.fromJson(json['salarySacrificeBreakdown'],'SalarySacrificeBreakdown',context!); id = json['id']; return this; } Map toJson() => { 'preTaxDeduction': preTaxDeduction, 'postTaxDeduction': postTaxDeduction, 'salarySacrificeBreakdown': JsonConverters.toJson(salarySacrificeBreakdown,'SalarySacrificeBreakdown',context!), 'id': id }; getTypeName() => "ContributionSalaryPackage"; TypeContext? context = _ctx; } abstract class IIdentifiableResource { String? id; } class DistributeContributionResponse implements IConvertible { ResponseStatus? responseStatus; DistributeContributionResponse({this.responseStatus}); DistributeContributionResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { responseStatus = JsonConverters.fromJson(json['responseStatus'],'ResponseStatus',context!); return this; } Map toJson() => { 'responseStatus': JsonConverters.toJson(responseStatus,'ResponseStatus',context!) }; getTypeName() => "DistributeContributionResponse"; TypeContext? context = _ctx; } // @Route("/contributions/{Id}/distribute", "POST") class DistributeContributionRequest extends PostOperationTenanted implements IReturn, IConvertible { String? id; List? salaryPackages; DistributeContributionRequest({this.id,this.salaryPackages}); DistributeContributionRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); id = json['id']; salaryPackages = JsonConverters.fromJson(json['salaryPackages'],'List',context!); return this; } Map toJson() => super.toJson()..addAll({ 'id': id, 'salaryPackages': JsonConverters.toJson(salaryPackages,'List',context!) }); createResponse() => DistributeContributionResponse(); getResponseTypeName() => "DistributeContributionResponse"; getTypeName() => "DistributeContributionRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'staging_api.billiecart.com.au', types: { 'PostOperationUnTenanted': TypeInfo(TypeOf.AbstractClass), 'PostOperationTenanted': TypeInfo(TypeOf.AbstractClass), 'ITenantedRequest': TypeInfo(TypeOf.Interface), 'SalarySacrificeBreakdown': TypeInfo(TypeOf.Class, create:() => SalarySacrificeBreakdown()), 'ContributionSalaryPackage': TypeInfo(TypeOf.Class, create:() => ContributionSalaryPackage()), 'IIdentifiableResource': TypeInfo(TypeOf.Interface), 'DistributeContributionResponse': TypeInfo(TypeOf.Class, create:() => DistributeContributionResponse()), 'DistributeContributionRequest': TypeInfo(TypeOf.Class, create:() => DistributeContributionRequest()), 'List': TypeInfo(TypeOf.Class, create:() => []), });