/* Options: Date: 2025-09-05 04:38:25 Version: 6.10 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://foundrystage-api-app.azurewebsites.net //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: GetLatestPhotoRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; abstract class GetOperationUnTenanted implements IHasGetOptions, IGet { String? embed; GetOperationUnTenanted({this.embed}); GetOperationUnTenanted.fromJson(Map json) { fromMap(json); } fromMap(Map json) { embed = json['embed']; return this; } Map toJson() => { 'embed': embed }; getTypeName() => "GetOperationUnTenanted<$TResponse>"; TypeContext? context = _ctx; } abstract class IHasGetOptions { String? embed; } abstract class ITenantedRequest { String? organisationId; } abstract class GetOperationTenanted extends GetOperationUnTenanted implements ITenantedRequest { String? organisationId; GetOperationTenanted({this.organisationId}); GetOperationTenanted.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); organisationId = json['organisationId']; return this; } Map toJson() => super.toJson()..addAll({ 'organisationId': organisationId }); getTypeName() => "GetOperationTenanted<$TResponse>"; TypeContext? context = _ctx; } class Photo implements IIdentifiableResource, IConvertible { DateTime? uploadedAt; String? imageUrl; String? thumbnailUrl; String? id; Photo({this.uploadedAt,this.imageUrl,this.thumbnailUrl,this.id}); Photo.fromJson(Map json) { fromMap(json); } fromMap(Map json) { uploadedAt = JsonConverters.fromJson(json['uploadedAt'],'DateTime',context!); imageUrl = json['imageUrl']; thumbnailUrl = json['thumbnailUrl']; id = json['id']; return this; } Map toJson() => { 'uploadedAt': JsonConverters.toJson(uploadedAt,'DateTime',context!), 'imageUrl': imageUrl, 'thumbnailUrl': thumbnailUrl, 'id': id }; getTypeName() => "Photo"; TypeContext? context = _ctx; } abstract class IIdentifiableResource { String? id; } class GetLatestPhotoResponse implements IConvertible { ResponseStatus? responseStatus; Photo? photo; GetLatestPhotoResponse({this.responseStatus,this.photo}); GetLatestPhotoResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { responseStatus = JsonConverters.fromJson(json['responseStatus'],'ResponseStatus',context!); photo = JsonConverters.fromJson(json['photo'],'Photo',context!); return this; } Map toJson() => { 'responseStatus': JsonConverters.toJson(responseStatus,'ResponseStatus',context!), 'photo': JsonConverters.toJson(photo,'Photo',context!) }; getTypeName() => "GetLatestPhotoResponse"; TypeContext? context = _ctx; } // @Route("/machines/{MachineId}/viewpoint/latest", "GET") class GetLatestPhotoRequest extends GetOperationTenanted implements IReturn, IConvertible { String? machineId; GetLatestPhotoRequest({this.machineId}); GetLatestPhotoRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); machineId = json['machineId']; return this; } Map toJson() => super.toJson()..addAll({ 'machineId': machineId }); createResponse() => GetLatestPhotoResponse(); getResponseTypeName() => "GetLatestPhotoResponse"; getTypeName() => "GetLatestPhotoRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'foundrystage_api_app.azurewebsites.net', types: { 'GetOperationUnTenanted': TypeInfo(TypeOf.AbstractClass), 'IHasGetOptions': TypeInfo(TypeOf.Interface), 'ITenantedRequest': TypeInfo(TypeOf.Interface), 'GetOperationTenanted': TypeInfo(TypeOf.AbstractClass), 'Photo': TypeInfo(TypeOf.Class, create:() => Photo()), 'IIdentifiableResource': TypeInfo(TypeOf.Interface), 'GetLatestPhotoResponse': TypeInfo(TypeOf.Class, create:() => GetLatestPhotoResponse()), 'GetLatestPhotoRequest': TypeInfo(TypeOf.Class, create:() => GetLatestPhotoRequest()), });