Trendsic Platform Service

<back to all web services

WebixGanttJobTypeRequest

Requires Authentication
The following routes are available for this service:
GET,OPTIONS/v1/webix/gantt/jobTypes
import 'package:servicestack/servicestack.dart';
import 'dart:typed_data';

class WebixGanttJobType implements IConvertible
{
    String? id;
    String? value;

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

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

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

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

class WebixGanttJobTypeResponse extends WebixGanttJobType implements IConvertible
{
    WebixGanttJobTypeResponse();
    WebixGanttJobTypeResponse.fromJson(Map<String, dynamic> json) : super.fromJson(json);
    fromMap(Map<String, dynamic> json) {
        super.fromMap(json);
        return this;
    }

    Map<String, dynamic> toJson() => super.toJson();
    getTypeName() => "WebixGanttJobTypeResponse";
    TypeContext? context = _ctx;
}

class WebixGanttJobTypeRequest implements IConvertible
{
    WebixGanttJobTypeRequest();
    WebixGanttJobTypeRequest.fromJson(Map<String, dynamic> json) : super();
    fromMap(Map<String, dynamic> json) {
        return this;
    }

    Map<String, dynamic> toJson() => {};
    getTypeName() => "WebixGanttJobTypeRequest";
    TypeContext? context = _ctx;
}

TypeContext _ctx = TypeContext(library: 'api.dev.dynamics.trendsic.com', types: <String, TypeInfo> {
    'WebixGanttJobType': TypeInfo(TypeOf.Class, create:() => WebixGanttJobType()),
    'WebixGanttJobTypeResponse': TypeInfo(TypeOf.Class, create:() => WebixGanttJobTypeResponse()),
    'WebixGanttJobTypeRequest': TypeInfo(TypeOf.Class, create:() => WebixGanttJobTypeRequest()),
});

Dart WebixGanttJobTypeRequest DTOs

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

HTTP + CSV

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

GET /v1/webix/gantt/jobTypes HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: text/csv
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length

{"id":"String","value":"String"}