/* Options: Date: 2026-06-22 22:52:11 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: WorkerAppPhotosRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class WorkerPhoto implements IConvertible { int? AttachmentId; String? Url; String? PropertyName; String? DateLabel; bool? IsCustomerVisible; WorkerPhoto({this.AttachmentId,this.Url,this.PropertyName,this.DateLabel,this.IsCustomerVisible}); WorkerPhoto.fromJson(Map json) { fromMap(json); } fromMap(Map json) { AttachmentId = json['AttachmentId']; Url = json['Url']; PropertyName = json['PropertyName']; DateLabel = json['DateLabel']; IsCustomerVisible = json['IsCustomerVisible']; return this; } Map toJson() => { 'AttachmentId': AttachmentId, 'Url': Url, 'PropertyName': PropertyName, 'DateLabel': DateLabel, 'IsCustomerVisible': IsCustomerVisible }; getTypeName() => "WorkerPhoto"; TypeContext? context = _ctx; } class WorkerAppPhotosResponse implements IConvertible { ResponseStatus? ResponseStatus; List? Photos = []; WorkerAppPhotosResponse({this.ResponseStatus,this.Photos}); WorkerAppPhotosResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { ResponseStatus = JsonConverters.fromJson(json['ResponseStatus'],'ResponseStatus',context!); Photos = JsonConverters.fromJson(json['Photos'],'List',context!); return this; } Map toJson() => { 'ResponseStatus': JsonConverters.toJson(ResponseStatus,'ResponseStatus',context!), 'Photos': JsonConverters.toJson(Photos,'List',context!) }; getTypeName() => "WorkerAppPhotosResponse"; TypeContext? context = _ctx; } // @Route("/v1/worker/photos", "GET,OPTIONS") class WorkerAppPhotosRequest implements IReturn, IConvertible, IGet { int? Take; WorkerAppPhotosRequest({this.Take}); WorkerAppPhotosRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Take = json['Take']; return this; } Map toJson() => { 'Take': Take }; createResponse() => WorkerAppPhotosResponse(); getResponseTypeName() => "WorkerAppPhotosResponse"; getTypeName() => "WorkerAppPhotosRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'api.dev.dynamics.trendsic.com', types: { 'WorkerPhoto': TypeInfo(TypeOf.Class, create:() => WorkerPhoto()), 'WorkerAppPhotosResponse': TypeInfo(TypeOf.Class, create:() => WorkerAppPhotosResponse()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'WorkerAppPhotosRequest': TypeInfo(TypeOf.Class, create:() => WorkerAppPhotosRequest()), });