POST | /RestApi/Sitefinity/packaging/archive |
---|
import 'package:servicestack/servicestack.dart';
class ExportForArchiveConfigurationMessage implements IConvertible
{
List<String>? StructureExportConfiguration;
List<String>? ContentExportConfiguration;
ExportForArchiveConfigurationMessage({this.StructureExportConfiguration,this.ContentExportConfiguration});
ExportForArchiveConfigurationMessage.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
StructureExportConfiguration = JsonConverters.fromJson(json['StructureExportConfiguration'],'List<String>',context!);
ContentExportConfiguration = JsonConverters.fromJson(json['ContentExportConfiguration'],'List<String>',context!);
return this;
}
Map<String, dynamic> toJson() => {
'StructureExportConfiguration': JsonConverters.toJson(StructureExportConfiguration,'List<String>',context!),
'ContentExportConfiguration': JsonConverters.toJson(ContentExportConfiguration,'List<String>',context!)
};
getTypeName() => "ExportForArchiveConfigurationMessage";
TypeContext? context = _ctx;
}
TypeContext _ctx = TypeContext(library: 'www.asg.com.au', types: <String, TypeInfo> {
'ExportForArchiveConfigurationMessage': TypeInfo(TypeOf.Class, create:() => ExportForArchiveConfigurationMessage()),
});
Dart ExportForArchiveConfigurationMessage DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /RestApi/Sitefinity/packaging/archive HTTP/1.1
Host: www.asg.com.au
Accept: text/csv
Content-Type: text/csv
Content-Length: length
{}