| GET | /api/client/mappings/type/{typeDesc}/target/{target} |
|---|
import 'package:servicestack/servicestack.dart';
class ClientMap implements IConvertible
{
int? ClientMapID;
String? TheirVal;
String? OurVal;
int? KeyTypeID;
String? KeyTypeDesc;
int? TypeID;
String? TypeDesc;
int? KeyValue;
String? MapTarget;
ClientMap({this.ClientMapID,this.TheirVal,this.OurVal,this.KeyTypeID,this.KeyTypeDesc,this.TypeID,this.TypeDesc,this.KeyValue,this.MapTarget});
ClientMap.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
ClientMapID = json['ClientMapID'];
TheirVal = json['TheirVal'];
OurVal = json['OurVal'];
KeyTypeID = json['KeyTypeID'];
KeyTypeDesc = json['KeyTypeDesc'];
TypeID = json['TypeID'];
TypeDesc = json['TypeDesc'];
KeyValue = json['KeyValue'];
MapTarget = json['MapTarget'];
return this;
}
Map<String, dynamic> toJson() => {
'ClientMapID': ClientMapID,
'TheirVal': TheirVal,
'OurVal': OurVal,
'KeyTypeID': KeyTypeID,
'KeyTypeDesc': KeyTypeDesc,
'TypeID': TypeID,
'TypeDesc': TypeDesc,
'KeyValue': KeyValue,
'MapTarget': MapTarget
};
getTypeName() => "ClientMap";
TypeContext? context = _ctx;
}
class ClientMappingsRs implements IApiResponse, IConvertible
{
List<ClientMap>? ClientMappings;
ClientMappingsRs({this.ClientMappings});
ClientMappingsRs.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
ClientMappings = JsonConverters.fromJson(json['ClientMappings'],'List<ClientMap>',context!);
return this;
}
Map<String, dynamic> toJson() => {
'ClientMappings': JsonConverters.toJson(ClientMappings,'List<ClientMap>',context!)
};
getTypeName() => "ClientMappingsRs";
TypeContext? context = _ctx;
}
class ClientMappingsByTypeAndTargetRq implements IApiRequest, IConvertible
{
String? TypeDesc;
String? Target;
ClientMappingsByTypeAndTargetRq({this.TypeDesc,this.Target});
ClientMappingsByTypeAndTargetRq.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
TypeDesc = json['TypeDesc'];
Target = json['Target'];
return this;
}
Map<String, dynamic> toJson() => {
'TypeDesc': TypeDesc,
'Target': Target
};
getTypeName() => "ClientMappingsByTypeAndTargetRq";
TypeContext? context = _ctx;
}
TypeContext _ctx = TypeContext(library: 'devapi.billhighway.com', types: <String, TypeInfo> {
'ClientMap': TypeInfo(TypeOf.Class, create:() => ClientMap()),
'ClientMappingsRs': TypeInfo(TypeOf.Class, create:() => ClientMappingsRs()),
'List<ClientMap>': TypeInfo(TypeOf.Class, create:() => <ClientMap>[]),
'ClientMappingsByTypeAndTargetRq': TypeInfo(TypeOf.Class, create:() => ClientMappingsByTypeAndTargetRq()),
});
Dart ClientMappingsByTypeAndTargetRq DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /api/client/mappings/type/{typeDesc}/target/{target} HTTP/1.1
Host: devapi.billhighway.com
Accept: text/jsv
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
ClientMappings:
[
{
ClientMapID: 0,
TheirVal: String,
OurVal: String,
KeyTypeID: 0,
KeyTypeDesc: String,
TypeID: 0,
TypeDesc: String,
KeyValue: 0,
MapTarget: String
}
]
}