| GET,OPTIONS | /v1/me/terminology |
|---|
import 'package:servicestack/servicestack.dart';
class GetMyTerminologyRequest implements IGet, IConvertible
{
GetMyTerminologyRequest();
GetMyTerminologyRequest.fromJson(Map<String, dynamic> json) : super();
fromMap(Map<String, dynamic> json) {
return this;
}
Map<String, dynamic> toJson() => {};
getTypeName() => "GetMyTerminologyRequest";
TypeContext? context = _ctx;
}
class TenantPlanModule implements IConvertible
{
String? Name;
String? Status;
DateTime? ExpiresAt;
String? MeterKey;
int? Used;
int? Allowance;
TenantPlanModule({this.Name,this.Status,this.ExpiresAt,this.MeterKey,this.Used,this.Allowance});
TenantPlanModule.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
Name = json['Name'];
Status = json['Status'];
ExpiresAt = JsonConverters.fromJson(json['ExpiresAt'],'DateTime',context!);
MeterKey = json['MeterKey'];
Used = json['Used'];
Allowance = json['Allowance'];
return this;
}
Map<String, dynamic> toJson() => {
'Name': Name,
'Status': Status,
'ExpiresAt': JsonConverters.toJson(ExpiresAt,'DateTime',context!),
'MeterKey': MeterKey,
'Used': Used,
'Allowance': Allowance
};
getTypeName() => "TenantPlanModule";
TypeContext? context = _ctx;
}
class GetMyTerminologyResponse implements IConvertible
{
String? PackCode;
Map<String,String?>? Terms = {};
Map<String,bool?>? Features = {};
List<String>? OutOfPack = [];
bool? WorkspaceSetupCompleted;
Map<String,bool?>? Entitled = {};
Map<String,String?>? Reasons = {};
Map<String,bool?>? Chosen = {};
Map<String,String?>? FeatureModules = {};
Map<String,TenantPlanModule?>? Modules = {};
GetMyTerminologyResponse({this.PackCode,this.Terms,this.Features,this.OutOfPack,this.WorkspaceSetupCompleted,this.Entitled,this.Reasons,this.Chosen,this.FeatureModules,this.Modules});
GetMyTerminologyResponse.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
PackCode = json['PackCode'];
Terms = JsonConverters.toStringMap(json['Terms']);
Features = JsonConverters.fromJson(json['Features'],'Map<String,bool?>',context!);
OutOfPack = JsonConverters.fromJson(json['OutOfPack'],'List<String>',context!);
WorkspaceSetupCompleted = json['WorkspaceSetupCompleted'];
Entitled = JsonConverters.fromJson(json['Entitled'],'Map<String,bool?>',context!);
Reasons = JsonConverters.toStringMap(json['Reasons']);
Chosen = JsonConverters.fromJson(json['Chosen'],'Map<String,bool?>',context!);
FeatureModules = JsonConverters.toStringMap(json['FeatureModules']);
Modules = JsonConverters.fromJson(json['Modules'],'Map<String,TenantPlanModule?>',context!);
return this;
}
Map<String, dynamic> toJson() => {
'PackCode': PackCode,
'Terms': Terms,
'Features': JsonConverters.toJson(Features,'Map<String,bool?>',context!),
'OutOfPack': JsonConverters.toJson(OutOfPack,'List<String>',context!),
'WorkspaceSetupCompleted': WorkspaceSetupCompleted,
'Entitled': JsonConverters.toJson(Entitled,'Map<String,bool?>',context!),
'Reasons': Reasons,
'Chosen': JsonConverters.toJson(Chosen,'Map<String,bool?>',context!),
'FeatureModules': FeatureModules,
'Modules': JsonConverters.toJson(Modules,'Map<String,TenantPlanModule?>',context!)
};
getTypeName() => "GetMyTerminologyResponse";
TypeContext? context = _ctx;
}
TypeContext _ctx = TypeContext(library: 'api.dev.dynamics.trendsic.com', types: <String, TypeInfo> {
'GetMyTerminologyRequest': TypeInfo(TypeOf.Class, create:() => GetMyTerminologyRequest()),
'TenantPlanModule': TypeInfo(TypeOf.Class, create:() => TenantPlanModule()),
'GetMyTerminologyResponse': TypeInfo(TypeOf.Class, create:() => GetMyTerminologyResponse()),
'Map<String,bool?>': TypeInfo(TypeOf.Class, create:() => Map<String,bool?>()),
'Map<String,TenantPlanModule?>': TypeInfo(TypeOf.Class, create:() => Map<String,TenantPlanModule?>()),
});
Dart GetMyTerminologyRequest DTOs
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/me/terminology HTTP/1.1 Host: api.dev.dynamics.trendsic.com Accept: text/jsonl
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length
{"PackCode":"String","Terms":{"String":"String"},"Features":{"String":false},"OutOfPack":["String"],"WorkspaceSetupCompleted":false,"Entitled":{"String":false},"Reasons":{"String":"String"},"Chosen":{"String":false},"FeatureModules":{"String":"String"},"Modules":{"String":{"Name":"String","Status":"String","ExpiresAt":"0001-01-01T00:00:00.0000000","MeterKey":"String","Used":0,"Allowance":0}}}