/* Options: Date: 2025-12-08 15:14:21 Version: 8.70 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://api.beto2.webhop.biz //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: CreateLocationRegion.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class Ref implements IConvertible { String? id; String? val; Ref({this.id,this.val}); Ref.fromJson(Map json) { fromMap(json); } fromMap(Map json) { id = json['id']; val = json['val']; return this; } Map toJson() => { 'id': id, 'val': val }; getTypeName() => "Ref"; TypeContext? context = _ctx; } // @Route("/cmd/locationRegions", "POST") class CreateLocationRegion implements IReturn, IConvertible, IPost { String? id; String? name; Ref? organization; CreateLocationRegion({this.id,this.name,this.organization}); CreateLocationRegion.fromJson(Map json) { fromMap(json); } fromMap(Map json) { id = json['id']; name = json['name']; organization = JsonConverters.fromJson(json['organization'],'Ref',context!); return this; } Map toJson() => { 'id': id, 'name': name, 'organization': JsonConverters.toJson(organization,'Ref',context!) }; createResponse() => ResponseStatus(); getResponseTypeName() => "ResponseStatus"; getTypeName() => "CreateLocationRegion"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'api.beto2.webhop.biz', types: { 'Ref': TypeInfo(TypeOf.Class, create:() => Ref()), 'CreateLocationRegion': TypeInfo(TypeOf.Class, create:() => CreateLocationRegion()), });