/* Options: Date: 2024-12-22 11:57:04 Version: 8.51 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://techstacks.io //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: CreateOrganization.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class CreateOrganizationResponse implements IConvertible { int? id; String? slug; ResponseStatus? responseStatus; CreateOrganizationResponse({this.id,this.slug,this.responseStatus}); CreateOrganizationResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { id = json['id']; slug = json['slug']; responseStatus = JsonConverters.fromJson(json['responseStatus'],'ResponseStatus',context!); return this; } Map toJson() => { 'id': id, 'slug': slug, 'responseStatus': JsonConverters.toJson(responseStatus,'ResponseStatus',context!) }; getTypeName() => "CreateOrganizationResponse"; TypeContext? context = _ctx; } // @Route("/orgs", "POST") class CreateOrganization implements IReturn, IPost, IConvertible { String? name; String? slug; String? description; int? refId; String? refSource; String? refUrn; CreateOrganization({this.name,this.slug,this.description,this.refId,this.refSource,this.refUrn}); CreateOrganization.fromJson(Map json) { fromMap(json); } fromMap(Map json) { name = json['name']; slug = json['slug']; description = json['description']; refId = json['refId']; refSource = json['refSource']; refUrn = json['refUrn']; return this; } Map toJson() => { 'name': name, 'slug': slug, 'description': description, 'refId': refId, 'refSource': refSource, 'refUrn': refUrn }; createResponse() => CreateOrganizationResponse(); getResponseTypeName() => "CreateOrganizationResponse"; getTypeName() => "CreateOrganization"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'techstacks.io', types: { 'CreateOrganizationResponse': TypeInfo(TypeOf.Class, create:() => CreateOrganizationResponse()), 'CreateOrganization': TypeInfo(TypeOf.Class, create:() => CreateOrganization()), });