/* Options: Date: 2025-09-09 03:34:21 Version: 5.140 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://api.clubmanagercentral.com //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: CustomAttributeService.SaveAttributesRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart,dart:typed_data */ import 'package:servicestack/servicestack.dart'; import 'dart:typed_data'; class CustomAttributeValue implements IConvertible { int? CustomAttributeId; int? CustomAttributeValueId; int? InstanceId; String? StoredValue; String? TypeName; bool? ReadOnly; HttpPostedFileBase? file; HttpPostedFileBase? files; CustomAttributeValue({this.CustomAttributeId,this.CustomAttributeValueId,this.InstanceId,this.StoredValue,this.TypeName,this.ReadOnly,this.file,this.files}); CustomAttributeValue.fromJson(Map json) { fromMap(json); } fromMap(Map json) { CustomAttributeId = json['CustomAttributeId']; CustomAttributeValueId = json['CustomAttributeValueId']; InstanceId = json['InstanceId']; StoredValue = json['StoredValue']; TypeName = json['TypeName']; ReadOnly = json['ReadOnly']; file = JsonConverters.fromJson(json['file'],'HttpPostedFileBase',context!); files = JsonConverters.fromJson(json['files'],'HttpPostedFileBase',context!); return this; } Map toJson() => { 'CustomAttributeId': CustomAttributeId, 'CustomAttributeValueId': CustomAttributeValueId, 'InstanceId': InstanceId, 'StoredValue': StoredValue, 'TypeName': TypeName, 'ReadOnly': ReadOnly, 'file': JsonConverters.toJson(file,'HttpPostedFileBase',context!), 'files': JsonConverters.toJson(files,'HttpPostedFileBase',context!) }; getTypeName() => "CustomAttributeValue"; TypeContext? context = _ctx; } // @Route("/api/CustomAttribute/SaveAttributes", "POST,GET") class SaveAttributesRequest implements IReturnVoid, IConvertible { int? Id; List? CustomAttributeValues; SaveAttributesRequest({this.Id,this.CustomAttributeValues}); SaveAttributesRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Id = json['Id']; CustomAttributeValues = JsonConverters.fromJson(json['CustomAttributeValues'],'List',context!); return this; } Map toJson() => { 'Id': Id, 'CustomAttributeValues': JsonConverters.toJson(CustomAttributeValues,'List',context!) }; createResponse() {} getTypeName() => "SaveAttributesRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'api.clubmanagercentral.com', types: { 'CustomAttributeValue': TypeInfo(TypeOf.Class, create:() => CustomAttributeValue()), 'HttpPostedFileBase': TypeInfo(TypeOf.Class, create:() => HttpPostedFileBase()), 'SaveAttributesRequest': TypeInfo(TypeOf.Class, create:() => SaveAttributesRequest()), 'List': TypeInfo(TypeOf.Class, create:() => []), });