/* Options: Date: 2026-06-13 04:18:57 Version: 8.80 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://api.dev.dynamics.trendsic.com //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: DashboardLocationGrantRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class DashboardLocationOption implements IConvertible { String? Id; String? Name; DashboardLocationOption({this.Id,this.Name}); DashboardLocationOption.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Id = json['Id']; Name = json['Name']; return this; } Map toJson() => { 'Id': Id, 'Name': Name }; getTypeName() => "DashboardLocationOption"; TypeContext? context = _ctx; } class DashboardLocationsResponse implements IConvertible { ResponseStatus? ResponseStatus; List? Locations = []; DashboardLocationsResponse({this.ResponseStatus,this.Locations}); DashboardLocationsResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { ResponseStatus = JsonConverters.fromJson(json['ResponseStatus'],'ResponseStatus',context!); Locations = JsonConverters.fromJson(json['Locations'],'List',context!); return this; } Map toJson() => { 'ResponseStatus': JsonConverters.toJson(ResponseStatus,'ResponseStatus',context!), 'Locations': JsonConverters.toJson(Locations,'List',context!) }; getTypeName() => "DashboardLocationsResponse"; TypeContext? context = _ctx; } // @Route("/v1/dashboard/locationgrants/{UserId}", "GET,OPTIONS") // @Route("/v1/dashboard/locationgrants/{UserId}/{LocationId}", "POST,DELETE,OPTIONS") class DashboardLocationGrantRequest implements IReturn, IConvertible, IGet { String? UserId; String? LocationId; DashboardLocationGrantRequest({this.UserId,this.LocationId}); DashboardLocationGrantRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { UserId = json['UserId']; LocationId = json['LocationId']; return this; } Map toJson() => { 'UserId': UserId, 'LocationId': LocationId }; createResponse() => DashboardLocationsResponse(); getResponseTypeName() => "DashboardLocationsResponse"; getTypeName() => "DashboardLocationGrantRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'api.dev.dynamics.trendsic.com', types: { 'DashboardLocationOption': TypeInfo(TypeOf.Class, create:() => DashboardLocationOption()), 'DashboardLocationsResponse': TypeInfo(TypeOf.Class, create:() => DashboardLocationsResponse()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'DashboardLocationGrantRequest': TypeInfo(TypeOf.Class, create:() => DashboardLocationGrantRequest()), });