/* Options: Date: 2024-12-29 02:58:39 Version: 8.22 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://data.regent-college.edu //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: FinanceCreateSaleRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart,dart:typed_data */ import 'package:servicestack/servicestack.dart'; import 'dart:typed_data'; class FinanceCreateSaleItemsRequest implements IConvertible { double? amount; String? code; FinanceCreateSaleItemsRequest({this.amount,this.code}); FinanceCreateSaleItemsRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { amount = JsonConverters.toDouble(json['amount']); code = json['code']; return this; } Map toJson() => { 'amount': amount, 'code': code }; getTypeName() => "FinanceCreateSaleItemsRequest"; TypeContext? context = _ctx; } // @Route("/Dynamics/CreateSale/{regent_id}", "POST") class FinanceCreateSaleRequest implements IReturn, IConvertible, IPost { int? regent_id; double? amount; String? code; String? rebate_code; double? rebate_amount; String? payment_id; String? reporting_term; List? sale_items; FinanceCreateSaleRequest({this.regent_id,this.amount,this.code,this.rebate_code,this.rebate_amount,this.payment_id,this.reporting_term,this.sale_items}); FinanceCreateSaleRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { regent_id = json['regent_id']; amount = JsonConverters.toDouble(json['amount']); code = json['code']; rebate_code = json['rebate_code']; rebate_amount = JsonConverters.toDouble(json['rebate_amount']); payment_id = json['payment_id']; reporting_term = json['reporting_term']; sale_items = JsonConverters.fromJson(json['sale_items'],'List',context!); return this; } Map toJson() => { 'regent_id': regent_id, 'amount': amount, 'code': code, 'rebate_code': rebate_code, 'rebate_amount': rebate_amount, 'payment_id': payment_id, 'reporting_term': reporting_term, 'sale_items': JsonConverters.toJson(sale_items,'List',context!) }; createResponse() => ResponseStatus(); getResponseTypeName() => "ResponseStatus"; getTypeName() => "FinanceCreateSaleRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'data.regent_college.edu', types: { 'FinanceCreateSaleItemsRequest': TypeInfo(TypeOf.Class, create:() => FinanceCreateSaleItemsRequest()), 'FinanceCreateSaleRequest': TypeInfo(TypeOf.Class, create:() => FinanceCreateSaleRequest()), 'List': TypeInfo(TypeOf.Class, create:() => []), });