| POST | /cmd/locations/devices/update/integrations-data |
|---|
import 'package:servicestack/servicestack.dart';
class UpdateLocationDeviceIntegrationsData implements IConvertible
{
String? id;
String? deviceId;
RecordDictionary<String,String>? integrationsData;
UpdateLocationDeviceIntegrationsData({this.id,this.deviceId,this.integrationsData});
UpdateLocationDeviceIntegrationsData.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
id = json['id'];
deviceId = json['deviceId'];
integrationsData = JsonConverters.fromJson(json['integrationsData'],'RecordDictionary<String,String>',context!);
return this;
}
Map<String, dynamic> toJson() => {
'id': id,
'deviceId': deviceId,
'integrationsData': JsonConverters.toJson(integrationsData,'RecordDictionary<String,String>',context!)
};
getTypeName() => "UpdateLocationDeviceIntegrationsData";
TypeContext? context = _ctx;
}
class RecordDictionary<TKey,TVal> extends Map<TKey,TVal?> implements IConvertible
{
RecordDictionary();
RecordDictionary.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() => "RecordDictionary<$TKey,$TVal>";
TypeContext? context = _ctx;
}
TypeContext _ctx = TypeContext(library: 'api.sbbet.ath.cx', types: <String, TypeInfo> {
'UpdateLocationDeviceIntegrationsData': TypeInfo(TypeOf.Class, create:() => UpdateLocationDeviceIntegrationsData()),
'RecordDictionary<String,String>': TypeInfo(TypeOf.Class, create:() => RecordDictionary<String,String>()),
'RecordDictionary<TKey,TVal>': TypeInfo(TypeOf.GenericDef,create:() => RecordDictionary()),
});
Dart UpdateLocationDeviceIntegrationsData DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /cmd/locations/devices/update/integrations-data HTTP/1.1
Host: api.sbbet.ath.cx
Accept: text/csv
Content-Type: text/csv
Content-Length: length
{"id":"String","deviceId":"String","integrationsData":{"String":"String"}}
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length
{"errorCode":"String","message":"String","stackTrace":"String","errors":[{"errorCode":"String","fieldName":"String","message":"String","meta":{"String":"String"}}],"meta":{"String":"String"}}