/* Options: Date: 2026-10-01 13:37:04 Version: 6.10 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://stubbur-app.azurewebsites.net //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: SurveyRecipientImportRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class SurveyRecipientImportRow implements IConvertible { String? email; String? segment; String? surveyUrl; SurveyRecipientImportRow({this.email,this.segment,this.surveyUrl}); SurveyRecipientImportRow.fromJson(Map json) { fromMap(json); } fromMap(Map json) { email = json['email']; segment = json['segment']; surveyUrl = json['surveyUrl']; return this; } Map toJson() => { 'email': email, 'segment': segment, 'surveyUrl': surveyUrl }; getTypeName() => "SurveyRecipientImportRow"; TypeContext? context = _ctx; } class SurveyRecipientImportResult implements IConvertible { int? inserted; int? skipped; int? invalid; List? invalidRows; int? statusCode; String? message; SurveyRecipientImportResult({this.inserted,this.skipped,this.invalid,this.invalidRows,this.statusCode,this.message}); SurveyRecipientImportResult.fromJson(Map json) { fromMap(json); } fromMap(Map json) { inserted = json['inserted']; skipped = json['skipped']; invalid = json['invalid']; invalidRows = JsonConverters.fromJson(json['invalidRows'],'List',context!); statusCode = json['statusCode']; message = json['message']; return this; } Map toJson() => { 'inserted': inserted, 'skipped': skipped, 'invalid': invalid, 'invalidRows': JsonConverters.toJson(invalidRows,'List',context!), 'statusCode': statusCode, 'message': message }; getTypeName() => "SurveyRecipientImportResult"; TypeContext? context = _ctx; } // @Route("/SurveyCampaign/{CampaignId}/Recipients", "POST") class SurveyRecipientImportRequest implements IReturn, IConvertible { int? campaignId; List? rows; SurveyRecipientImportRequest({this.campaignId,this.rows}); SurveyRecipientImportRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { campaignId = json['campaignId']; rows = JsonConverters.fromJson(json['rows'],'List',context!); return this; } Map toJson() => { 'campaignId': campaignId, 'rows': JsonConverters.toJson(rows,'List',context!) }; createResponse() => SurveyRecipientImportResult(); getResponseTypeName() => "SurveyRecipientImportResult"; getTypeName() => "SurveyRecipientImportRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'stubbur_app.azurewebsites.net', types: { 'SurveyRecipientImportRow': TypeInfo(TypeOf.Class, create:() => SurveyRecipientImportRow()), 'SurveyRecipientImportResult': TypeInfo(TypeOf.Class, create:() => SurveyRecipientImportResult()), 'SurveyRecipientImportRequest': TypeInfo(TypeOf.Class, create:() => SurveyRecipientImportRequest()), 'List': TypeInfo(TypeOf.Class, create:() => []), });