/* Options: Date: 2024-12-15 20:24:01 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: ChangeDefaultOrganisationRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; abstract class PutOperationUnTenanted implements IPut { PutOperationUnTenanted(); PutOperationUnTenanted.fromJson(Map json) : super(); fromMap(Map json) { return this; } Map toJson() => {}; getTypeName() => "PutOperationUnTenanted<$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 ChangeDefaultOrganisationResponse implements IConvertible { ResponseStatus? responseStatus; Organisation? organisation; ChangeDefaultOrganisationResponse({this.responseStatus,this.organisation}); ChangeDefaultOrganisationResponse.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() => "ChangeDefaultOrganisationResponse"; TypeContext? context = _ctx; } // @Route("/organisations/default", "PUT") class ChangeDefaultOrganisationRequest extends PutOperationUnTenanted implements IReturn, IConvertible { String? id; ChangeDefaultOrganisationRequest({this.id}); ChangeDefaultOrganisationRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); id = json['id']; return this; } Map toJson() => super.toJson()..addAll({ 'id': id }); createResponse() => ChangeDefaultOrganisationResponse(); getResponseTypeName() => "ChangeDefaultOrganisationResponse"; getTypeName() => "ChangeDefaultOrganisationRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'staging_api.billiecart.com.au', types: { 'PutOperationUnTenanted': TypeInfo(TypeOf.AbstractClass), 'Organisation': TypeInfo(TypeOf.Class, create:() => Organisation()), 'IIdentifiableResource': TypeInfo(TypeOf.Interface), 'ChangeDefaultOrganisationResponse': TypeInfo(TypeOf.Class, create:() => ChangeDefaultOrganisationResponse()), 'ChangeDefaultOrganisationRequest': TypeInfo(TypeOf.Class, create:() => ChangeDefaultOrganisationRequest()), });