Trendsic Platform Service

<back to all web services

StaffPublicRespondRequest

The following routes are available for this service:
GET,OPTIONS/v1/staff/respond
import 'package:servicestack/servicestack.dart';
import 'dart:typed_data';

class StaffPublicRespondRequest implements IConvertible
{
    String? Token;
    String? Action;
    String? Note;
    double? Rate;
    String? Start;

    StaffPublicRespondRequest({this.Token,this.Action,this.Note,this.Rate,this.Start});
    StaffPublicRespondRequest.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        Token = json['Token'];
        Action = json['Action'];
        Note = json['Note'];
        Rate = JsonConverters.toDouble(json['Rate']);
        Start = json['Start'];
        return this;
    }

    Map<String, dynamic> toJson() => {
        'Token': Token,
        'Action': Action,
        'Note': Note,
        'Rate': Rate,
        'Start': Start
    };

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

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

Dart StaffPublicRespondRequest DTOs

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

HTTP + JSV

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

GET /v1/staff/respond HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: text/jsv