AlbaApi

<back to all web services

SetPdfModelRequest

The following routes are available for this service:
POST/pdf/model
import 'package:servicestack/servicestack.dart';
import 'dart:typed_data';

class SetPdfModelResponse implements IConvertible
{
    String? id;
    bool? success;

    SetPdfModelResponse({this.id,this.success});
    SetPdfModelResponse.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        id = json['id'];
        success = json['success'];
        return this;
    }

    Map<String, dynamic> toJson() => {
        'id': id,
        'success': success
    };

    getTypeName() => "SetPdfModelResponse";
    TypeContext? context = _ctx;
}

class PdfModel implements IConvertible
{
    String? model;

    PdfModel({this.model});
    PdfModel.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        model = json['model'];
        return this;
    }

    Map<String, dynamic> toJson() => {
        'model': model
    };

    getTypeName() => "PdfModel";
    TypeContext? context = _ctx;
}

class SetPdfModelRequest implements IConvertible
{
    PdfModel? pdfModel;

    SetPdfModelRequest({this.pdfModel});
    SetPdfModelRequest.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        pdfModel = JsonConverters.fromJson(json['pdfModel'],'PdfModel',context!);
        return this;
    }

    Map<String, dynamic> toJson() => {
        'pdfModel': JsonConverters.toJson(pdfModel,'PdfModel',context!)
    };

    getTypeName() => "SetPdfModelRequest";
    TypeContext? context = _ctx;
}

TypeContext _ctx = TypeContext(library: 'hcbtas_q_albamfs_api.azurewebsites.net', types: <String, TypeInfo> {
    'SetPdfModelResponse': TypeInfo(TypeOf.Class, create:() => SetPdfModelResponse()),
    'PdfModel': TypeInfo(TypeOf.Class, create:() => PdfModel()),
    'SetPdfModelRequest': TypeInfo(TypeOf.Class, create:() => SetPdfModelRequest()),
});

Dart SetPdfModelRequest DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml

HTTP + XML

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /pdf/model HTTP/1.1 
Host: hcbtas-q-albamfs-api.azurewebsites.net 
Accept: application/xml
Content-Type: application/xml
Content-Length: length

<SetPdfModelRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/AlbaApi.ServiceModel">
  <PdfModel>
    <Model>String</Model>
  </PdfModel>
</SetPdfModelRequest>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<SetPdfModelResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/AlbaApi.ServiceModel">
  <Id>00000000-0000-0000-0000-000000000000</Id>
  <Success>false</Success>
</SetPdfModelResponse>