/* Options: Date: 2025-12-06 07:25:03 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: DropboxCustomerRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart,dart:typed_data */ import 'package:servicestack/servicestack.dart'; import 'dart:typed_data'; class Dropbox implements IConvertible { int? Id; String? AttachmentId; String? FirstName; String? LastName; String? TableName; int? RecordId; String? Description; String? DocumentType; String? DocumentGroup; DateTime? DateAdded; bool? Locked; double? FileSizeInKB; Dropbox({this.Id,this.AttachmentId,this.FirstName,this.LastName,this.TableName,this.RecordId,this.Description,this.DocumentType,this.DocumentGroup,this.DateAdded,this.Locked,this.FileSizeInKB}); Dropbox.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Id = json['Id']; AttachmentId = json['AttachmentId']; FirstName = json['FirstName']; LastName = json['LastName']; TableName = json['TableName']; RecordId = json['RecordId']; Description = json['Description']; DocumentType = json['DocumentType']; DocumentGroup = json['DocumentGroup']; DateAdded = JsonConverters.fromJson(json['DateAdded'],'DateTime',context!); Locked = json['Locked']; FileSizeInKB = JsonConverters.toDouble(json['FileSizeInKB']); return this; } Map toJson() => { 'Id': Id, 'AttachmentId': AttachmentId, 'FirstName': FirstName, 'LastName': LastName, 'TableName': TableName, 'RecordId': RecordId, 'Description': Description, 'DocumentType': DocumentType, 'DocumentGroup': DocumentGroup, 'DateAdded': JsonConverters.toJson(DateAdded,'DateTime',context!), 'Locked': Locked, 'FileSizeInKB': FileSizeInKB }; getTypeName() => "Dropbox"; TypeContext? context = _ctx; } class DropboxExtended extends Dropbox implements IConvertible { String? AttachmentName; String? AgentName; String? MimeType; bool? IsAgent; bool? IsContact; bool? IsShared; bool? CanShare; String? ShareList; DropboxExtended({this.AttachmentName,this.AgentName,this.MimeType,this.IsAgent,this.IsContact,this.IsShared,this.CanShare,this.ShareList}); DropboxExtended.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); AttachmentName = json['AttachmentName']; AgentName = json['AgentName']; MimeType = json['MimeType']; IsAgent = json['IsAgent']; IsContact = json['IsContact']; IsShared = json['IsShared']; CanShare = json['CanShare']; ShareList = json['ShareList']; return this; } Map toJson() => super.toJson()..addAll({ 'AttachmentName': AttachmentName, 'AgentName': AgentName, 'MimeType': MimeType, 'IsAgent': IsAgent, 'IsContact': IsContact, 'IsShared': IsShared, 'CanShare': CanShare, 'ShareList': ShareList }); getTypeName() => "DropboxExtended"; TypeContext? context = _ctx; } class DropboxResponse implements IConvertible { ResponseStatus? ResponseStatus; List? Dropbox = []; DropboxResponse({this.ResponseStatus,this.Dropbox}); DropboxResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { ResponseStatus = JsonConverters.fromJson(json['ResponseStatus'],'ResponseStatus',context!); Dropbox = JsonConverters.fromJson(json['Dropbox'],'List',context!); return this; } Map toJson() => { 'ResponseStatus': JsonConverters.toJson(ResponseStatus,'ResponseStatus',context!), 'Dropbox': JsonConverters.toJson(Dropbox,'List',context!) }; getTypeName() => "DropboxResponse"; TypeContext? context = _ctx; } // @Route("/v1/Dropbox/Customer/{CustomerId}", "GET,POST,OPTIONS") // @Route("/v1/Dropbox/Customer/CustomerCheckIn/{CustomerCheckInId}", "GET,POST,OPTIONS") class DropboxCustomerRequest implements IReturn, IConvertible, IGet { List? Dropbox = []; String? CustomerId; String? CustomerCheckInId; DropboxCustomerRequest({this.Dropbox,this.CustomerId,this.CustomerCheckInId}); DropboxCustomerRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Dropbox = JsonConverters.fromJson(json['Dropbox'],'List',context!); CustomerId = json['CustomerId']; CustomerCheckInId = json['CustomerCheckInId']; return this; } Map toJson() => { 'Dropbox': JsonConverters.toJson(Dropbox,'List',context!), 'CustomerId': CustomerId, 'CustomerCheckInId': CustomerCheckInId }; createResponse() => DropboxResponse(); getResponseTypeName() => "DropboxResponse"; getTypeName() => "DropboxCustomerRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'api.dev.dynamics.trendsic.com', types: { 'Dropbox': TypeInfo(TypeOf.Class, create:() => Dropbox()), 'DropboxExtended': TypeInfo(TypeOf.Class, create:() => DropboxExtended()), 'DropboxResponse': TypeInfo(TypeOf.Class, create:() => DropboxResponse()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'DropboxCustomerRequest': TypeInfo(TypeOf.Class, create:() => DropboxCustomerRequest()), 'List': TypeInfo(TypeOf.Class, create:() => []), });