/* Options: Date: 2026-10-16 05:58:21 Version: 10.05 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://testapi.bokamera.se //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: GetVossTargetGroups.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; // @DataContract(Name="TargetGroupConfigurationResult") class TargetGroupConfigurationResult implements IConvertible { // @DataMember(Name="id", IsRequired=true) String id = ""; // @DataMember(Name="organizationNumberRequired") bool organizationNumberRequired; // @DataMember(Name="organizationNumberUnique") bool organizationNumberUnique; // @DataMember(Name="customerNumberRequired") bool customerNumberRequired; // @DataMember(Name="customerAddressRequired") bool customerAddressRequired; // @DataMember(Name="contactPersonRequired") bool contactPersonRequired; // @DataMember(Name="expiryDateRequired") bool expiryDateRequired; // @DataMember(Name="excludeCustomerFromInvoiceFile") bool excludeCustomerFromInvoiceFile; TargetGroupConfigurationResult({this.id,this.organizationNumberRequired,this.organizationNumberUnique,this.customerNumberRequired,this.customerAddressRequired,this.contactPersonRequired,this.expiryDateRequired,this.excludeCustomerFromInvoiceFile}); TargetGroupConfigurationResult.fromJson(Map json) { fromMap(json); } fromMap(Map json) { id = json['Id']; organizationNumberRequired = json['OrganizationNumberRequired']; organizationNumberUnique = json['OrganizationNumberUnique']; customerNumberRequired = json['CustomerNumberRequired']; customerAddressRequired = json['CustomerAddressRequired']; contactPersonRequired = json['ContactPersonRequired']; expiryDateRequired = json['ExpiryDateRequired']; excludeCustomerFromInvoiceFile = json['ExcludeCustomerFromInvoiceFile']; return this; } Map toJson() => { 'id': id, 'organizationNumberRequired': organizationNumberRequired, 'organizationNumberUnique': organizationNumberUnique, 'customerNumberRequired': customerNumberRequired, 'customerAddressRequired': customerAddressRequired, 'contactPersonRequired': contactPersonRequired, 'expiryDateRequired': expiryDateRequired, 'excludeCustomerFromInvoiceFile': excludeCustomerFromInvoiceFile }; getTypeName() => "TargetGroupConfigurationResult"; TypeContext? context = _ctx; } enum TypeEnum { Exclusivity, } // @DataContract(Name="TargetGroupTagDto") class TargetGroupTagDto implements IConvertible { // @DataMember(Name="type", IsRequired=true) TypeEnum type; // @DataMember(Name="tag", IsRequired=true) String tag = ""; TargetGroupTagDto({this.type,this.tag}); TargetGroupTagDto.fromJson(Map json) { fromMap(json); } fromMap(Map json) { type = JsonConverters.fromJson(json['Type'],'TypeEnum',context!); tag = json['Tag']; return this; } Map toJson() => { 'type': JsonConverters.toJson(type,'TypeEnum',context!), 'tag': tag }; getTypeName() => "TargetGroupTagDto"; TypeContext? context = _ctx; } // @DataContract(Name="TargetGroupResult") class TargetGroupResult implements IConvertible { // @DataMember(Name="id", IsRequired=true) String id = ""; // @DataMember(Name="name", IsRequired=true) String name = ""; // @DataMember(Name="isDefault") bool isDefault; // @DataMember(Name="externalId") String externalId = ""; // @DataMember(Name="configuration", EmitDefaultValue=false) TargetGroupConfigurationResult configuration; // @DataMember(Name="tags", EmitDefaultValue=false) List tags = []; TargetGroupResult({this.id,this.name,this.isDefault,this.externalId,this.configuration,this.tags}); TargetGroupResult.fromJson(Map json) { fromMap(json); } fromMap(Map json) { id = json['Id']; name = json['Name']; isDefault = json['IsDefault']; externalId = json['ExternalId']; configuration = JsonConverters.fromJson(json['VarConfiguration'],'TargetGroupConfigurationResult',context!); tags = JsonConverters.fromJson(json['Tags'],'List',context!); return this; } Map toJson() => { 'id': id, 'name': name, 'isDefault': isDefault, 'externalId': externalId, 'configuration': JsonConverters.toJson(configuration,'TargetGroupConfigurationResult',context!), 'tags': JsonConverters.toJson(tags,'List',context!) }; getTypeName() => "TargetGroupResult"; TypeContext? context = _ctx; } class GetVossTargetGroupsResponse implements IConvertible { int TotalCount = 0; List Items = []; GetVossTargetGroupsResponse({this.TotalCount,this.Items}); GetVossTargetGroupsResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { TotalCount = json['TotalCount']; Items = JsonConverters.fromJson(json['Items'],'List',context!); return this; } Map toJson() => { 'TotalCount': TotalCount, 'Items': JsonConverters.toJson(Items,'List',context!) }; getTypeName() => "GetVossTargetGroupsResponse"; TypeContext? context = _ctx; } // @Route("/voss/targetGroups", "GET") // @ApiResponse(Description="You were unauthorized to call this service", StatusCode=401) class GetVossTargetGroups implements IReturn, IConvertible, IGet { GetVossTargetGroups(); GetVossTargetGroups.fromJson(Map json) : super(); fromMap(Map json) { return this; } Map toJson() => {}; createResponse() => GetVossTargetGroupsResponse(); getResponseTypeName() => "GetVossTargetGroupsResponse"; getTypeName() => "GetVossTargetGroups"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'testapi.bokamera.se', types: { 'TargetGroupConfigurationResult': TypeInfo(TypeOf.Class, create:() => TargetGroupConfigurationResult()), 'TypeEnum': TypeInfo(TypeOf.Enum, enumValues:TypeEnum.values), 'TargetGroupTagDto': TypeInfo(TypeOf.Class, create:() => TargetGroupTagDto()), 'TargetGroupResult': TypeInfo(TypeOf.Class, create:() => TargetGroupResult()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'GetVossTargetGroupsResponse': TypeInfo(TypeOf.Class, create:() => GetVossTargetGroupsResponse()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'GetVossTargetGroups': TypeInfo(TypeOf.Class, create:() => GetVossTargetGroups()), });