/* Options: Date: 2024-12-15 20:06:43 Version: 6.10 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://staging-api.billiecart.com.au //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: AssignRolesRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; abstract class PostOperationUnTenanted implements IPost { PostOperationUnTenanted(); PostOperationUnTenanted.fromJson(Map json) : super(); fromMap(Map json) { return this; } Map toJson() => {}; getTypeName() => "PostOperationUnTenanted<$TResponse>"; TypeContext? context = _ctx; } // @Route("/users/{Id}/roles/assign", "POST") class AssignRolesRequest extends PostOperationUnTenanted implements IReturn, IConvertible { String? id; List? roles; AssignRolesRequest({this.id,this.roles}); AssignRolesRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); id = json['id']; roles = JsonConverters.fromJson(json['roles'],'List',context!); return this; } Map toJson() => super.toJson()..addAll({ 'id': id, 'roles': JsonConverters.toJson(roles,'List',context!) }); createResponse() => AssignRolesResponse(); getResponseTypeName() => "AssignRolesResponse"; getTypeName() => "AssignRolesRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'staging_api.billiecart.com.au', types: { 'PostOperationUnTenanted': TypeInfo(TypeOf.AbstractClass), 'AssignRolesRequest': TypeInfo(TypeOf.Class, create:() => AssignRolesRequest()), });