/* Options: Date: 2024-12-15 20:46:18 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: UpdateOrganisationRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; abstract class PutPatchOperationUnTenanted implements IPatch, IPut { PutPatchOperationUnTenanted(); PutPatchOperationUnTenanted.fromJson(Map json) : super(); fromMap(Map json) { return this; } Map toJson() => {}; getTypeName() => "PutPatchOperationUnTenanted<$TResponse>"; TypeContext? context = _ctx; } class Organisation implements IIdentifiableResource, IConvertible { String? displayName; List? owners; bool? isDefault; String? id; Organisation({this.displayName,this.owners,this.isDefault,this.id}); Organisation.fromJson(Map json) { fromMap(json); } fromMap(Map json) { displayName = json['displayName']; owners = JsonConverters.fromJson(json['owners'],'List',context!); isDefault = json['isDefault']; id = json['id']; return this; } Map toJson() => { 'displayName': displayName, 'owners': JsonConverters.toJson(owners,'List',context!), 'isDefault': isDefault, 'id': id }; getTypeName() => "Organisation"; TypeContext? context = _ctx; } abstract class IIdentifiableResource { String? id; } class UpdateOrganisationResponse implements IConvertible { ResponseStatus? responseStatus; Organisation? organisation; UpdateOrganisationResponse({this.responseStatus,this.organisation}); UpdateOrganisationResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { responseStatus = JsonConverters.fromJson(json['responseStatus'],'ResponseStatus',context!); organisation = JsonConverters.fromJson(json['organisation'],'Organisation',context!); return this; } Map toJson() => { 'responseStatus': JsonConverters.toJson(responseStatus,'ResponseStatus',context!), 'organisation': JsonConverters.toJson(organisation,'Organisation',context!) }; getTypeName() => "UpdateOrganisationResponse"; TypeContext? context = _ctx; } // @Route("/organisations/{Id}", "PUT,PATCH") class UpdateOrganisationRequest extends PutPatchOperationUnTenanted implements IReturn, IConvertible { String? id; String? displayName; UpdateOrganisationRequest({this.id,this.displayName}); UpdateOrganisationRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); id = json['id']; displayName = json['displayName']; return this; } Map toJson() => super.toJson()..addAll({ 'id': id, 'displayName': displayName }); createResponse() => UpdateOrganisationResponse(); getResponseTypeName() => "UpdateOrganisationResponse"; getTypeName() => "UpdateOrganisationRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'staging_api.billiecart.com.au', types: { 'PutPatchOperationUnTenanted': TypeInfo(TypeOf.AbstractClass), 'Organisation': TypeInfo(TypeOf.Class, create:() => Organisation()), 'IIdentifiableResource': TypeInfo(TypeOf.Interface), 'UpdateOrganisationResponse': TypeInfo(TypeOf.Class, create:() => UpdateOrganisationResponse()), 'UpdateOrganisationRequest': TypeInfo(TypeOf.Class, create:() => UpdateOrganisationRequest()), });