/* Options: Date: 2025-02-05 06:54:58 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; CustomAttributeValue({this.CustomAttributeId,this.CustomAttributeValueId,this.InstanceId,this.StoredValue,this.TypeName,this.ReadOnly}); 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']; return this; } Map toJson() => { 'CustomAttributeId': CustomAttributeId, 'CustomAttributeValueId': CustomAttributeValueId, 'InstanceId': InstanceId, 'StoredValue': StoredValue, 'TypeName': TypeName, 'ReadOnly': ReadOnly }; 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()), 'SaveAttributesRequest': TypeInfo(TypeOf.Class, create:() => SaveAttributesRequest()), 'List': TypeInfo(TypeOf.Class, create:() => []), });