Bridge

<back to all web services

AddSupplierToPort

Suppliers
The following routes are available for this service:
GET/Suppliers/Add-Supplier-To-Port
import 'package:servicestack/servicestack.dart';
import 'dart:typed_data';

class AddSupplierToPort implements IConvertible
{
    int? PortId;
    List<String>? SupplierContacts;
    String? EntityName;
    int? EntityId;

    AddSupplierToPort({this.PortId,this.SupplierContacts,this.EntityName,this.EntityId});
    AddSupplierToPort.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        PortId = json['PortId'];
        SupplierContacts = JsonConverters.fromJson(json['SupplierContacts'],'List<String>',context!);
        EntityName = json['EntityName'];
        EntityId = json['EntityId'];
        return this;
    }

    Map<String, dynamic> toJson() => {
        'PortId': PortId,
        'SupplierContacts': JsonConverters.toJson(SupplierContacts,'List<String>',context!),
        'EntityName': EntityName,
        'EntityId': EntityId
    };

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

TypeContext _ctx = TypeContext(library: 'internal.thebunkerbridge.com', types: <String, TypeInfo> {
    'AddSupplierToPort': TypeInfo(TypeOf.Class, create:() => AddSupplierToPort()),
});

Dart AddSupplierToPort 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.

GET /Suppliers/Add-Supplier-To-Port HTTP/1.1 
Host: internal.thebunkerbridge.com 
Accept: application/xml
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

(string)