/* Options: Date: 2025-12-16 02:45:16 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: Years.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart,dart:typed_data */ import 'package:servicestack/servicestack.dart'; import 'dart:typed_data'; class ModelResponse implements IConvertible { int? Id; String? Name; bool? Published; ModelResponse({this.Id,this.Name,this.Published}); ModelResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Id = json['Id']; Name = json['Name']; Published = json['Published']; return this; } Map toJson() => { 'Id': Id, 'Name': Name, 'Published': Published }; getTypeName() => "ModelResponse"; TypeContext? context = _ctx; } class YearsResponse implements IConvertible { ResponseStatus? ResponseStatus; bool? IsSuccess; String? Message; List? Items; YearsResponse({this.ResponseStatus,this.IsSuccess,this.Message,this.Items}); YearsResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { ResponseStatus = JsonConverters.fromJson(json['ResponseStatus'],'ResponseStatus',context!); IsSuccess = json['IsSuccess']; Message = json['Message']; Items = JsonConverters.fromJson(json['Items'],'List',context!); return this; } Map toJson() => { 'ResponseStatus': JsonConverters.toJson(ResponseStatus,'ResponseStatus',context!), 'IsSuccess': IsSuccess, 'Message': Message, 'Items': JsonConverters.toJson(Items,'List',context!) }; getTypeName() => "YearsResponse"; TypeContext? context = _ctx; } // @Route("/years/{ModelId}") class Years implements IReturn, IConvertible, IPost { int? ModelId; Years({this.ModelId}); Years.fromJson(Map json) { fromMap(json); } fromMap(Map json) { ModelId = json['ModelId']; return this; } Map toJson() => { 'ModelId': ModelId }; createResponse() => YearsResponse(); getResponseTypeName() => "YearsResponse"; getTypeName() => "Years"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'mds_api.mojomotorcycles.com.au', types: { 'ModelResponse': TypeInfo(TypeOf.Class, create:() => ModelResponse()), 'YearsResponse': TypeInfo(TypeOf.Class, create:() => YearsResponse()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'Years': TypeInfo(TypeOf.Class, create:() => Years()), });