| All Verbs | /MissionGetListByType |
|---|
import 'package:servicestack/servicestack.dart';
enum MissionType
{
NEW,
STARTED,
ENDED,
}
class MissionGetListByType implements IConvertible
{
/**
* With mission details
*/
// @ApiMember(Description="With mission details")
bool? WithDetails;
/**
* Type of mission to include
*/
// @ApiMember(Description="Type of mission to include")
MissionType? MissionType;
/**
* Optional: mission type filter
*/
// @ApiMember(Description="Optional: mission type filter")
String? MissionTypeFilter;
MissionGetListByType({this.WithDetails,this.MissionType,this.MissionTypeFilter});
MissionGetListByType.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
WithDetails = json['WithDetails'];
MissionType = JsonConverters.fromJson(json['MissionType'],'MissionType',context!);
MissionTypeFilter = json['MissionTypeFilter'];
return this;
}
Map<String, dynamic> toJson() => {
'WithDetails': WithDetails,
'MissionType': JsonConverters.toJson(MissionType,'MissionType',context!),
'MissionTypeFilter': MissionTypeFilter
};
getTypeName() => "MissionGetListByType";
TypeContext? context = _ctx;
}
TypeContext _ctx = TypeContext(library: 'clouddemo.pickeos.com', types: <String, TypeInfo> {
'MissionType': TypeInfo(TypeOf.Enum, enumValues:MissionType.values),
'MissionGetListByType': TypeInfo(TypeOf.Class, create:() => MissionGetListByType()),
});
Dart MissionGetListByType 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.
POST /MissionGetListByType HTTP/1.1
Host: clouddemo.pickeos.com
Accept: application/json
Content-Type: application/json
Content-Length: length
{"WithDetails":false,"MissionType":"NEW","MissionTypeFilter":"String"}