/* Options: Date: 2026-04-04 06:48:10 Version: 8.52 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://pfapi.pstpf.com.au/api //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: AddContactRoleGroup.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class ListItemModel implements IConvertible { String? ListItemId; String? Name; String? Description; String? ShortName; bool? IsDefault; int? Order; String? ListItemTrafficLightId; String? PrimaryListItemImageId; String? PrimaryListItemImageUrl; String? PrimaryImageThumbnailUrl; String? OwnerContactId; String? RecordStatus; ListItemModel({this.ListItemId,this.Name,this.Description,this.ShortName,this.IsDefault,this.Order,this.ListItemTrafficLightId,this.PrimaryListItemImageId,this.PrimaryListItemImageUrl,this.PrimaryImageThumbnailUrl,this.OwnerContactId,this.RecordStatus}); ListItemModel.fromJson(Map json) { fromMap(json); } fromMap(Map json) { ListItemId = json['ListItemId']; Name = json['Name']; Description = json['Description']; ShortName = json['ShortName']; IsDefault = json['IsDefault']; Order = json['Order']; ListItemTrafficLightId = json['ListItemTrafficLightId']; PrimaryListItemImageId = json['PrimaryListItemImageId']; PrimaryListItemImageUrl = json['PrimaryListItemImageUrl']; PrimaryImageThumbnailUrl = json['PrimaryImageThumbnailUrl']; OwnerContactId = json['OwnerContactId']; RecordStatus = json['RecordStatus']; return this; } Map toJson() => { 'ListItemId': ListItemId, 'Name': Name, 'Description': Description, 'ShortName': ShortName, 'IsDefault': IsDefault, 'Order': Order, 'ListItemTrafficLightId': ListItemTrafficLightId, 'PrimaryListItemImageId': PrimaryListItemImageId, 'PrimaryListItemImageUrl': PrimaryListItemImageUrl, 'PrimaryImageThumbnailUrl': PrimaryImageThumbnailUrl, 'OwnerContactId': OwnerContactId, 'RecordStatus': RecordStatus }; getTypeName() => "ListItemModel"; TypeContext? context = _ctx; } // @ApiResponse(Description="Create contact role group") class AddContactRoleGroupResponse implements IConvertible { String? ContactRoleGroupId; ResponseStatus? ResponseStatus; AddContactRoleGroupResponse({this.ContactRoleGroupId,this.ResponseStatus}); AddContactRoleGroupResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { ContactRoleGroupId = json['ContactRoleGroupId']; ResponseStatus = JsonConverters.fromJson(json['ResponseStatus'],'ResponseStatus',context!); return this; } Map toJson() => { 'ContactRoleGroupId': ContactRoleGroupId, 'ResponseStatus': JsonConverters.toJson(ResponseStatus,'ResponseStatus',context!) }; getTypeName() => "AddContactRoleGroupResponse"; TypeContext? context = _ctx; } /** * Create new contact role group */ // @Route("/contactrolegroups", "POST") // @Api(Description="Create new contact role group") class AddContactRoleGroup implements IReturn, IConvertible, IPost { /** * Contact role group name to be created */ // @ApiMember(Description="Contact role group name to be created", Name="Name") String? Name; List? Roles; AddContactRoleGroup({this.Name,this.Roles}); AddContactRoleGroup.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Name = json['Name']; Roles = JsonConverters.fromJson(json['Roles'],'List',context!); return this; } Map toJson() => { 'Name': Name, 'Roles': JsonConverters.toJson(Roles,'List',context!) }; createResponse() => AddContactRoleGroupResponse(); getResponseTypeName() => "AddContactRoleGroupResponse"; getTypeName() => "AddContactRoleGroup"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'pfapi.pstpf.com.au', types: { 'ListItemModel': TypeInfo(TypeOf.Class, create:() => ListItemModel()), 'AddContactRoleGroupResponse': TypeInfo(TypeOf.Class, create:() => AddContactRoleGroupResponse()), 'AddContactRoleGroup': TypeInfo(TypeOf.Class, create:() => AddContactRoleGroup()), 'List': TypeInfo(TypeOf.Class, create:() => []), });