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