| All Verbs | /api/contacts/invitevirtualcontact |
|---|
import 'package:servicestack/servicestack.dart';
class InviteVirtualContactResponse implements IConvertible
{
bool? Success;
String? Message;
ResponseStatus? ResponseStatus;
InviteVirtualContactResponse({this.Success,this.Message,this.ResponseStatus});
InviteVirtualContactResponse.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
Success = json['Success'];
Message = json['Message'];
ResponseStatus = JsonConverters.fromJson(json['ResponseStatus'],'ResponseStatus',context!);
return this;
}
Map<String, dynamic> toJson() => {
'Success': Success,
'Message': Message,
'ResponseStatus': JsonConverters.toJson(ResponseStatus,'ResponseStatus',context!)
};
getTypeName() => "InviteVirtualContactResponse";
TypeContext? context = _ctx;
}
class InviteVirtualContact implements IConvertible
{
String? ContactId;
String? EmailAddress;
List<String>? Roles;
InviteVirtualContact({this.ContactId,this.EmailAddress,this.Roles});
InviteVirtualContact.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
ContactId = json['ContactId'];
EmailAddress = json['EmailAddress'];
Roles = JsonConverters.fromJson(json['Roles'],'List<String>',context!);
return this;
}
Map<String, dynamic> toJson() => {
'ContactId': ContactId,
'EmailAddress': EmailAddress,
'Roles': JsonConverters.toJson(Roles,'List<String>',context!)
};
getTypeName() => "InviteVirtualContact";
TypeContext? context = _ctx;
}
TypeContext _ctx = TypeContext(library: 'pfapi.pstpf.com.au', types: <String, TypeInfo> {
'InviteVirtualContactResponse': TypeInfo(TypeOf.Class, create:() => InviteVirtualContactResponse()),
'InviteVirtualContact': TypeInfo(TypeOf.Class, create:() => InviteVirtualContact()),
});
Dart InviteVirtualContact 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 /api/contacts/invitevirtualcontact HTTP/1.1
Host: pfapi.pstpf.com.au
Accept: application/json
Content-Type: application/json
Content-Length: length
{"ContactId":"00000000-0000-0000-0000-000000000000","EmailAddress":"String","Roles":["00000000-0000-0000-0000-000000000000"]}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length
{"Success":false,"Message":"String","ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}}}