| GET | /v1/workforce/burden |
|---|
import 'package:servicestack/servicestack.dart';
import 'dart:typed_data';
class BurdenRate implements IConvertible
{
int? BurdenRateID;
String? BranchId;
String? ClassCode;
double? Fica;
double? FutaSuta;
double? Wc;
double? Gl;
DateTime? EffectiveFrom;
double? BurdenPct;
BurdenRate({this.BurdenRateID,this.BranchId,this.ClassCode,this.Fica,this.FutaSuta,this.Wc,this.Gl,this.EffectiveFrom,this.BurdenPct});
BurdenRate.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
BurdenRateID = json['BurdenRateID'];
BranchId = json['BranchId'];
ClassCode = json['ClassCode'];
Fica = JsonConverters.toDouble(json['Fica']);
FutaSuta = JsonConverters.toDouble(json['FutaSuta']);
Wc = JsonConverters.toDouble(json['Wc']);
Gl = JsonConverters.toDouble(json['Gl']);
EffectiveFrom = JsonConverters.fromJson(json['EffectiveFrom'],'DateTime',context!);
BurdenPct = JsonConverters.toDouble(json['BurdenPct']);
return this;
}
Map<String, dynamic> toJson() => {
'BurdenRateID': BurdenRateID,
'BranchId': BranchId,
'ClassCode': ClassCode,
'Fica': Fica,
'FutaSuta': FutaSuta,
'Wc': Wc,
'Gl': Gl,
'EffectiveFrom': JsonConverters.toJson(EffectiveFrom,'DateTime',context!),
'BurdenPct': BurdenPct
};
getTypeName() => "BurdenRate";
TypeContext? context = _ctx;
}
class BurdenRatesResponse implements IConvertible
{
List<BurdenRate>? Burden = [];
ResponseStatus? ResponseStatus;
BurdenRatesResponse({this.Burden,this.ResponseStatus});
BurdenRatesResponse.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
Burden = JsonConverters.fromJson(json['Burden'],'List<BurdenRate>',context!);
ResponseStatus = JsonConverters.fromJson(json['ResponseStatus'],'ResponseStatus',context!);
return this;
}
Map<String, dynamic> toJson() => {
'Burden': JsonConverters.toJson(Burden,'List<BurdenRate>',context!),
'ResponseStatus': JsonConverters.toJson(ResponseStatus,'ResponseStatus',context!)
};
getTypeName() => "BurdenRatesResponse";
TypeContext? context = _ctx;
}
class BurdenRatesRequest implements IConvertible
{
BurdenRatesRequest();
BurdenRatesRequest.fromJson(Map<String, dynamic> json) : super();
fromMap(Map<String, dynamic> json) {
return this;
}
Map<String, dynamic> toJson() => {};
getTypeName() => "BurdenRatesRequest";
TypeContext? context = _ctx;
}
TypeContext _ctx = TypeContext(library: 'api.dev.dynamics.trendsic.com', types: <String, TypeInfo> {
'BurdenRate': TypeInfo(TypeOf.Class, create:() => BurdenRate()),
'BurdenRatesResponse': TypeInfo(TypeOf.Class, create:() => BurdenRatesResponse()),
'List<BurdenRate>': TypeInfo(TypeOf.Class, create:() => <BurdenRate>[]),
'BurdenRatesRequest': TypeInfo(TypeOf.Class, create:() => BurdenRatesRequest()),
});
To override the Content-type in your clients, use the HTTP Accept Header, append the .other suffix or ?format=other
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /v1/workforce/burden HTTP/1.1 Host: api.dev.dynamics.trendsic.com Accept: text/jsonl
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length
{"Burden":[{"BurdenRateID":0,"BranchId":"00000000000000000000000000000000","ClassCode":"String","Fica":0,"FutaSuta":0,"Wc":0,"Gl":0,"EffectiveFrom":"0001-01-01T00:00:00.0000000","BurdenPct":0}],"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}}}