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