/* Options: Date: 2026-10-26 14:23:25 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: ApprovePlatformRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class PlatformRequestRow implements IConvertible { int? PlatformRequestId; String? TenantId; String? TenantName; String? Slug; String? Kind; String? Key; String? Message; String? ContactName; String? ContactEmail; String? RequestedBy; DateTime? RequestedAt; String? Status; String? ClosedBy; DateTime? ClosedAt; String? CloseNote; PlatformRequestRow({this.PlatformRequestId,this.TenantId,this.TenantName,this.Slug,this.Kind,this.Key,this.Message,this.ContactName,this.ContactEmail,this.RequestedBy,this.RequestedAt,this.Status,this.ClosedBy,this.ClosedAt,this.CloseNote}); PlatformRequestRow.fromJson(Map json) { fromMap(json); } fromMap(Map json) { PlatformRequestId = json['PlatformRequestId']; TenantId = json['TenantId']; TenantName = json['TenantName']; Slug = json['Slug']; Kind = json['Kind']; Key = json['Key']; Message = json['Message']; ContactName = json['ContactName']; ContactEmail = json['ContactEmail']; RequestedBy = json['RequestedBy']; RequestedAt = JsonConverters.fromJson(json['RequestedAt'],'DateTime',context!); Status = json['Status']; ClosedBy = json['ClosedBy']; ClosedAt = JsonConverters.fromJson(json['ClosedAt'],'DateTime',context!); CloseNote = json['CloseNote']; return this; } Map toJson() => { 'PlatformRequestId': PlatformRequestId, 'TenantId': TenantId, 'TenantName': TenantName, 'Slug': Slug, 'Kind': Kind, 'Key': Key, 'Message': Message, 'ContactName': ContactName, 'ContactEmail': ContactEmail, 'RequestedBy': RequestedBy, 'RequestedAt': JsonConverters.toJson(RequestedAt,'DateTime',context!), 'Status': Status, 'ClosedBy': ClosedBy, 'ClosedAt': JsonConverters.toJson(ClosedAt,'DateTime',context!), 'CloseNote': CloseNote }; getTypeName() => "PlatformRequestRow"; TypeContext? context = _ctx; } class PlatformRequestsResponse implements IConvertible { ResponseStatus? ResponseStatus; List? Requests = []; PlatformRequestRow? Closed; PlatformRequestsResponse({this.ResponseStatus,this.Requests,this.Closed}); PlatformRequestsResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { ResponseStatus = JsonConverters.fromJson(json['ResponseStatus'],'ResponseStatus',context!); Requests = JsonConverters.fromJson(json['Requests'],'List',context!); Closed = JsonConverters.fromJson(json['Closed'],'PlatformRequestRow',context!); return this; } Map toJson() => { 'ResponseStatus': JsonConverters.toJson(ResponseStatus,'ResponseStatus',context!), 'Requests': JsonConverters.toJson(Requests,'List',context!), 'Closed': JsonConverters.toJson(Closed,'PlatformRequestRow',context!) }; getTypeName() => "PlatformRequestsResponse"; TypeContext? context = _ctx; } // @Route("/v1/platform/requests/{PlatformRequestId}/approve", "POST,OPTIONS") class ApprovePlatformRequest implements IReturn, IConvertible, IPost { int? PlatformRequestId; String? Status; DateTime? ExpiresAt; String? Reason; ApprovePlatformRequest({this.PlatformRequestId,this.Status,this.ExpiresAt,this.Reason}); ApprovePlatformRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { PlatformRequestId = json['PlatformRequestId']; Status = json['Status']; ExpiresAt = JsonConverters.fromJson(json['ExpiresAt'],'DateTime',context!); Reason = json['Reason']; return this; } Map toJson() => { 'PlatformRequestId': PlatformRequestId, 'Status': Status, 'ExpiresAt': JsonConverters.toJson(ExpiresAt,'DateTime',context!), 'Reason': Reason }; createResponse() => PlatformRequestsResponse(); getResponseTypeName() => "PlatformRequestsResponse"; getTypeName() => "ApprovePlatformRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'api.dev.dynamics.trendsic.com', types: { 'PlatformRequestRow': TypeInfo(TypeOf.Class, create:() => PlatformRequestRow()), 'PlatformRequestsResponse': TypeInfo(TypeOf.Class, create:() => PlatformRequestsResponse()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'ApprovePlatformRequest': TypeInfo(TypeOf.Class, create:() => ApprovePlatformRequest()), });