GET | /api/documentuploads/{ID} |
---|
import 'package:servicestack/servicestack.dart';
class DocumentUpload implements IConvertible
{
int? ID;
String? Description;
String? Notes;
String? FileName;
String? Extension;
DateTime? FileDate;
String? AssignedTo;
String? AssignedToGroup;
String? UploadedBy;
bool? HasPreview;
DocumentUpload({this.ID,this.Description,this.Notes,this.FileName,this.Extension,this.FileDate,this.AssignedTo,this.AssignedToGroup,this.UploadedBy,this.HasPreview});
DocumentUpload.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
ID = json['ID'];
Description = json['Description'];
Notes = json['Notes'];
FileName = json['FileName'];
Extension = json['Extension'];
FileDate = JsonConverters.fromJson(json['FileDate'],'DateTime',context!);
AssignedTo = json['AssignedTo'];
AssignedToGroup = json['AssignedToGroup'];
UploadedBy = json['UploadedBy'];
HasPreview = json['HasPreview'];
return this;
}
Map<String, dynamic> toJson() => {
'ID': ID,
'Description': Description,
'Notes': Notes,
'FileName': FileName,
'Extension': Extension,
'FileDate': JsonConverters.toJson(FileDate,'DateTime',context!),
'AssignedTo': AssignedTo,
'AssignedToGroup': AssignedToGroup,
'UploadedBy': UploadedBy,
'HasPreview': HasPreview
};
getTypeName() => "DocumentUpload";
TypeContext? context = _ctx;
}
class GetDocumentUploadDetails implements IConvertible
{
int? ID;
GetDocumentUploadDetails({this.ID});
GetDocumentUploadDetails.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
ID = json['ID'];
return this;
}
Map<String, dynamic> toJson() => {
'ID': ID
};
getTypeName() => "GetDocumentUploadDetails";
TypeContext? context = _ctx;
}
TypeContext _ctx = TypeContext(library: 'digiofficeapigateway.deltares.nl', types: <String, TypeInfo> {
'DocumentUpload': TypeInfo(TypeOf.Class, create:() => DocumentUpload()),
'GetDocumentUploadDetails': TypeInfo(TypeOf.Class, create:() => GetDocumentUploadDetails()),
});
Dart GetDocumentUploadDetails 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 /api/documentuploads/{ID} HTTP/1.1 Host: digiofficeapigateway.deltares.nl Accept: application/json
HTTP/1.1 200 OK Content-Type: application/json Content-Length: length {"ID":0,"Description":"String","Notes":"String","FileName":"String","Extension":"String","FileDate":"0001-01-01T00:00:00.0000000","AssignedTo":"String","AssignedToGroup":"String","UploadedBy":"String","HasPreview":false}