/* Options: Date: 2025-12-15 11:31:51 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: Models.* //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 ModelsResponse implements IConvertible { ResponseStatus? ResponseStatus; bool? IsSuccess; String? Message; List? Items; ModelsResponse({this.ResponseStatus,this.IsSuccess,this.Message,this.Items}); ModelsResponse.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() => "ModelsResponse"; TypeContext? context = _ctx; } // @Route("/models/{TypeId}") class Models implements IReturn, IConvertible, IPost { int? TypeId; Models({this.TypeId}); Models.fromJson(Map json) { fromMap(json); } fromMap(Map json) { TypeId = json['TypeId']; return this; } Map toJson() => { 'TypeId': TypeId }; createResponse() => ModelsResponse(); getResponseTypeName() => "ModelsResponse"; getTypeName() => "Models"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'mds_api.mojomotorcycles.com.au', types: { 'ModelResponse': TypeInfo(TypeOf.Class, create:() => ModelResponse()), 'ModelsResponse': TypeInfo(TypeOf.Class, create:() => ModelsResponse()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'Models': TypeInfo(TypeOf.Class, create:() => Models()), });