| Requires any of the roles: | Agent, Administrator |
| GET,OPTIONS | /v1/SlotDistrictAllRequests/{Agent} |
|---|
import 'package:servicestack/servicestack.dart';
import 'dart:typed_data';
class SlotDistrictApproval implements IConvertible
{
int? SlotDistrictApprovalID;
int? SlotDistrictID;
int? SchoolID;
int? AgentID;
int? AVPID;
String? Status;
DateTime? DateCreated;
DateTime? DateModified;
String? ModifiedBy;
SlotDistrictApproval({this.SlotDistrictApprovalID,this.SlotDistrictID,this.SchoolID,this.AgentID,this.AVPID,this.Status,this.DateCreated,this.DateModified,this.ModifiedBy});
SlotDistrictApproval.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
SlotDistrictApprovalID = json['SlotDistrictApprovalID'];
SlotDistrictID = json['SlotDistrictID'];
SchoolID = json['SchoolID'];
AgentID = json['AgentID'];
AVPID = json['AVPID'];
Status = json['Status'];
DateCreated = JsonConverters.fromJson(json['DateCreated'],'DateTime',context!);
DateModified = JsonConverters.fromJson(json['DateModified'],'DateTime',context!);
ModifiedBy = json['ModifiedBy'];
return this;
}
Map<String, dynamic> toJson() => {
'SlotDistrictApprovalID': SlotDistrictApprovalID,
'SlotDistrictID': SlotDistrictID,
'SchoolID': SchoolID,
'AgentID': AgentID,
'AVPID': AVPID,
'Status': Status,
'DateCreated': JsonConverters.toJson(DateCreated,'DateTime',context!),
'DateModified': JsonConverters.toJson(DateModified,'DateTime',context!),
'ModifiedBy': ModifiedBy
};
getTypeName() => "SlotDistrictApproval";
TypeContext? context = _ctx;
}
class SlotDistrictApprovalExtended extends SlotDistrictApproval implements IConvertible
{
String? AgentName;
String? AVPName;
String? DistrictName;
String? SchoolName;
String? County;
String? State;
SlotDistrictApprovalExtended({this.AgentName,this.AVPName,this.DistrictName,this.SchoolName,this.County,this.State});
SlotDistrictApprovalExtended.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
super.fromMap(json);
AgentName = json['AgentName'];
AVPName = json['AVPName'];
DistrictName = json['DistrictName'];
SchoolName = json['SchoolName'];
County = json['County'];
State = json['State'];
return this;
}
Map<String, dynamic> toJson() => super.toJson()..addAll({
'AgentName': AgentName,
'AVPName': AVPName,
'DistrictName': DistrictName,
'SchoolName': SchoolName,
'County': County,
'State': State
});
getTypeName() => "SlotDistrictApprovalExtended";
TypeContext? context = _ctx;
}
class SlotDistrictApprovalResponse implements IConvertible
{
ResponseStatus? ResponseStatus;
List<SlotDistrictApprovalExtended>? SlotDistrictApproval = [];
SlotDistrictApprovalResponse({this.ResponseStatus,this.SlotDistrictApproval});
SlotDistrictApprovalResponse.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
ResponseStatus = JsonConverters.fromJson(json['ResponseStatus'],'ResponseStatus',context!);
SlotDistrictApproval = JsonConverters.fromJson(json['SlotDistrictApproval'],'List<SlotDistrictApprovalExtended>',context!);
return this;
}
Map<String, dynamic> toJson() => {
'ResponseStatus': JsonConverters.toJson(ResponseStatus,'ResponseStatus',context!),
'SlotDistrictApproval': JsonConverters.toJson(SlotDistrictApproval,'List<SlotDistrictApprovalExtended>',context!)
};
getTypeName() => "SlotDistrictApprovalResponse";
TypeContext? context = _ctx;
}
class SlotDistrictAllRequest implements IConvertible
{
int? Agent;
SlotDistrictAllRequest({this.Agent});
SlotDistrictAllRequest.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
Agent = json['Agent'];
return this;
}
Map<String, dynamic> toJson() => {
'Agent': Agent
};
getTypeName() => "SlotDistrictAllRequest";
TypeContext? context = _ctx;
}
TypeContext _ctx = TypeContext(library: 'api.dev.dynamics.trendsic.com', types: <String, TypeInfo> {
'SlotDistrictApproval': TypeInfo(TypeOf.Class, create:() => SlotDistrictApproval()),
'SlotDistrictApprovalExtended': TypeInfo(TypeOf.Class, create:() => SlotDistrictApprovalExtended()),
'SlotDistrictApprovalResponse': TypeInfo(TypeOf.Class, create:() => SlotDistrictApprovalResponse()),
'List<SlotDistrictApprovalExtended>': TypeInfo(TypeOf.Class, create:() => <SlotDistrictApprovalExtended>[]),
'SlotDistrictAllRequest': TypeInfo(TypeOf.Class, create:() => SlotDistrictAllRequest()),
});
Dart SlotDistrictAllRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .json suffix or ?format=json
To embed the response in a jsonp callback, append ?callback=myCallback
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /v1/SlotDistrictAllRequests/{Agent} HTTP/1.1
Host: api.dev.dynamics.trendsic.com
Accept: application/json
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length
{"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}},"SlotDistrictApproval":[{"AgentName":"String","AVPName":"String","DistrictName":"String","SchoolName":"String","County":"String","State":"String","SlotDistrictApprovalID":0,"SlotDistrictID":0,"SchoolID":0,"AgentID":0,"AVPID":0,"Status":"String","DateCreated":"0001-01-01T00:00:00.0000000","DateModified":"0001-01-01T00:00:00.0000000","ModifiedBy":"00000000000000000000000000000000"}]}