/* Options: Date: 2025-12-16 02:35:00 Version: 6.110 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://mds-api.mojomotorcycles.com.au //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: DiagramSingle.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart,dart:typed_data */ import 'package:servicestack/servicestack.dart'; import 'dart:typed_data'; class Coordinate implements IConvertible { int? x1; int? y1; int? x2; int? y2; Coordinate({this.x1,this.y1,this.x2,this.y2}); Coordinate.fromJson(Map json) { fromMap(json); } fromMap(Map json) { x1 = json['x1']; y1 = json['y1']; x2 = json['x2']; y2 = json['y2']; return this; } Map toJson() => { 'x1': x1, 'y1': y1, 'x2': x2, 'y2': y2 }; getTypeName() => "Coordinate"; TypeContext? context = _ctx; } class MyobStockItemMapping implements IConvertible { int? StockItemId; int? Id; int? Number; String? InventoryId; int? GroupId; String? Name; double? RetailPrice; double? DealerPrice; double? TradePrice; double? RetailPriceNz; double? TradePriceNz; double? DealerPriceNz; String? SalesUom; String? StockingIndicator; String? Color; String? ColorCode; String? NoteText; List? Coordinates; int? PartQuantity; int? AvaiableQuantity; bool? ShowAvailabilityPopUp; bool? IsFd; MyobStockItemMapping({this.StockItemId,this.Id,this.Number,this.InventoryId,this.GroupId,this.Name,this.RetailPrice,this.DealerPrice,this.TradePrice,this.RetailPriceNz,this.TradePriceNz,this.DealerPriceNz,this.SalesUom,this.StockingIndicator,this.Color,this.ColorCode,this.NoteText,this.Coordinates,this.PartQuantity,this.AvaiableQuantity,this.ShowAvailabilityPopUp,this.IsFd}); MyobStockItemMapping.fromJson(Map json) { fromMap(json); } fromMap(Map json) { StockItemId = json['StockItemId']; Id = json['Id']; Number = json['Number']; InventoryId = json['InventoryId']; GroupId = json['GroupId']; Name = json['Name']; RetailPrice = JsonConverters.toDouble(json['RetailPrice']); DealerPrice = JsonConverters.toDouble(json['DealerPrice']); TradePrice = JsonConverters.toDouble(json['TradePrice']); RetailPriceNz = JsonConverters.toDouble(json['RetailPriceNz']); TradePriceNz = JsonConverters.toDouble(json['TradePriceNz']); DealerPriceNz = JsonConverters.toDouble(json['DealerPriceNz']); SalesUom = json['SalesUom']; StockingIndicator = json['StockingIndicator']; Color = json['Color']; ColorCode = json['ColorCode']; NoteText = json['NoteText']; Coordinates = JsonConverters.fromJson(json['Coordinates'],'List',context!); PartQuantity = json['PartQuantity']; AvaiableQuantity = json['AvaiableQuantity']; ShowAvailabilityPopUp = json['ShowAvailabilityPopUp']; IsFd = json['IsFd']; return this; } Map toJson() => { 'StockItemId': StockItemId, 'Id': Id, 'Number': Number, 'InventoryId': InventoryId, 'GroupId': GroupId, 'Name': Name, 'RetailPrice': RetailPrice, 'DealerPrice': DealerPrice, 'TradePrice': TradePrice, 'RetailPriceNz': RetailPriceNz, 'TradePriceNz': TradePriceNz, 'DealerPriceNz': DealerPriceNz, 'SalesUom': SalesUom, 'StockingIndicator': StockingIndicator, 'Color': Color, 'ColorCode': ColorCode, 'NoteText': NoteText, 'Coordinates': JsonConverters.toJson(Coordinates,'List',context!), 'PartQuantity': PartQuantity, 'AvaiableQuantity': AvaiableQuantity, 'ShowAvailabilityPopUp': ShowAvailabilityPopUp, 'IsFd': IsFd }; getTypeName() => "MyobStockItemMapping"; TypeContext? context = _ctx; } class DiagramSingleResponse implements IConvertible { ResponseStatus? ResponseStatus; List? Parts; DiagramSingleResponse({this.ResponseStatus,this.Parts}); DiagramSingleResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { ResponseStatus = JsonConverters.fromJson(json['ResponseStatus'],'ResponseStatus',context!); Parts = JsonConverters.fromJson(json['Parts'],'List',context!); return this; } Map toJson() => { 'ResponseStatus': JsonConverters.toJson(ResponseStatus,'ResponseStatus',context!), 'Parts': JsonConverters.toJson(Parts,'List',context!) }; getTypeName() => "DiagramSingleResponse"; TypeContext? context = _ctx; } // @Route("/diagram-single/{DiagramId}") class DiagramSingle implements IReturn, IConvertible, IGet { int? DiagramId; DiagramSingle({this.DiagramId}); DiagramSingle.fromJson(Map json) { fromMap(json); } fromMap(Map json) { DiagramId = json['DiagramId']; return this; } Map toJson() => { 'DiagramId': DiagramId }; createResponse() => DiagramSingleResponse(); getResponseTypeName() => "DiagramSingleResponse"; getTypeName() => "DiagramSingle"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'mds_api.mojomotorcycles.com.au', types: { 'Coordinate': TypeInfo(TypeOf.Class, create:() => Coordinate()), 'MyobStockItemMapping': TypeInfo(TypeOf.Class, create:() => MyobStockItemMapping()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'DiagramSingleResponse': TypeInfo(TypeOf.Class, create:() => DiagramSingleResponse()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'DiagramSingle': TypeInfo(TypeOf.Class, create:() => DiagramSingle()), });