/* Options: Date: 2025-12-16 02:31:06 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: Diagram.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart,dart:typed_data */ import 'package:servicestack/servicestack.dart'; import 'dart:typed_data'; class DiagramImageDetail implements IConvertible { String? Url; int? Width; int? Height; DiagramImageDetail({this.Url,this.Width,this.Height}); DiagramImageDetail.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Url = json['Url']; Width = json['Width']; Height = json['Height']; return this; } Map toJson() => { 'Url': Url, 'Width': Width, 'Height': Height }; getTypeName() => "DiagramImageDetail"; TypeContext? context = _ctx; } 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 DiagramPartDetail implements IConvertible { int? Number; String? PartName; String? PartId; String? ImageUrl; List? Coordinates; DiagramPartDetail({this.Number,this.PartName,this.PartId,this.ImageUrl,this.Coordinates}); DiagramPartDetail.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Number = json['Number']; PartName = json['PartName']; PartId = json['PartId']; ImageUrl = json['ImageUrl']; Coordinates = JsonConverters.fromJson(json['Coordinates'],'List',context!); return this; } Map toJson() => { 'Number': Number, 'PartName': PartName, 'PartId': PartId, 'ImageUrl': ImageUrl, 'Coordinates': JsonConverters.toJson(Coordinates,'List',context!) }; getTypeName() => "DiagramPartDetail"; TypeContext? context = _ctx; } class DiagramResponse implements IConvertible { ResponseStatus? ResponseStatus; String? Name; String? Guid; DateTime? DateLastUpdate; DiagramImageDetail? Image; List? Parts; DiagramResponse({this.ResponseStatus,this.Name,this.Guid,this.DateLastUpdate,this.Image,this.Parts}); DiagramResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { ResponseStatus = JsonConverters.fromJson(json['ResponseStatus'],'ResponseStatus',context!); Name = json['Name']; Guid = json['Guid']; DateLastUpdate = JsonConverters.fromJson(json['DateLastUpdate'],'DateTime',context!); Image = JsonConverters.fromJson(json['Image'],'DiagramImageDetail',context!); Parts = JsonConverters.fromJson(json['Parts'],'List',context!); return this; } Map toJson() => { 'ResponseStatus': JsonConverters.toJson(ResponseStatus,'ResponseStatus',context!), 'Name': Name, 'Guid': Guid, 'DateLastUpdate': JsonConverters.toJson(DateLastUpdate,'DateTime',context!), 'Image': JsonConverters.toJson(Image,'DiagramImageDetail',context!), 'Parts': JsonConverters.toJson(Parts,'List',context!) }; getTypeName() => "DiagramResponse"; TypeContext? context = _ctx; } // @Route("/diagram/{Guid}") class Diagram implements IReturn, IConvertible, IGet { String? Guid; Diagram({this.Guid}); Diagram.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Guid = json['Guid']; return this; } Map toJson() => { 'Guid': Guid }; createResponse() => DiagramResponse(); getResponseTypeName() => "DiagramResponse"; getTypeName() => "Diagram"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'mds_api.mojomotorcycles.com.au', types: { 'DiagramImageDetail': TypeInfo(TypeOf.Class, create:() => DiagramImageDetail()), 'Coordinate': TypeInfo(TypeOf.Class, create:() => Coordinate()), 'DiagramPartDetail': TypeInfo(TypeOf.Class, create:() => DiagramPartDetail()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'DiagramResponse': TypeInfo(TypeOf.Class, create:() => DiagramResponse()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'Diagram': TypeInfo(TypeOf.Class, create:() => Diagram()), });