/* Options: Date: 2026-10-17 23:32:51 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: CustomerNoteDoneRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class CustomerNote implements IConvertible { int? NoteId; String? Scope; String? Text; bool? IsPriority; String? CreatedByUserId; String? CreatedByName; DateTime? CreatedAt; DateTime? DoneAt; bool? IsCarry; DateTime? ShownAt; CustomerNote({this.NoteId,this.Scope,this.Text,this.IsPriority,this.CreatedByUserId,this.CreatedByName,this.CreatedAt,this.DoneAt,this.IsCarry,this.ShownAt}); CustomerNote.fromJson(Map json) { fromMap(json); } fromMap(Map json) { NoteId = json['NoteId']; Scope = json['Scope']; Text = json['Text']; IsPriority = json['IsPriority']; CreatedByUserId = json['CreatedByUserId']; CreatedByName = json['CreatedByName']; CreatedAt = JsonConverters.fromJson(json['CreatedAt'],'DateTime',context!); DoneAt = JsonConverters.fromJson(json['DoneAt'],'DateTime',context!); IsCarry = json['IsCarry']; ShownAt = JsonConverters.fromJson(json['ShownAt'],'DateTime',context!); return this; } Map toJson() => { 'NoteId': NoteId, 'Scope': Scope, 'Text': Text, 'IsPriority': IsPriority, 'CreatedByUserId': CreatedByUserId, 'CreatedByName': CreatedByName, 'CreatedAt': JsonConverters.toJson(CreatedAt,'DateTime',context!), 'DoneAt': JsonConverters.toJson(DoneAt,'DateTime',context!), 'IsCarry': IsCarry, 'ShownAt': JsonConverters.toJson(ShownAt,'DateTime',context!) }; getTypeName() => "CustomerNote"; TypeContext? context = _ctx; } class CustomerNoteResponse implements IConvertible { ResponseStatus? ResponseStatus; List? Notes = []; List? Carry = []; bool? CanPriority; CustomerNote? Note; CustomerNoteResponse({this.ResponseStatus,this.Notes,this.Carry,this.CanPriority,this.Note}); CustomerNoteResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { ResponseStatus = JsonConverters.fromJson(json['ResponseStatus'],'ResponseStatus',context!); Notes = JsonConverters.fromJson(json['Notes'],'List',context!); Carry = JsonConverters.fromJson(json['Carry'],'List',context!); CanPriority = json['CanPriority']; Note = JsonConverters.fromJson(json['Note'],'CustomerNote',context!); return this; } Map toJson() => { 'ResponseStatus': JsonConverters.toJson(ResponseStatus,'ResponseStatus',context!), 'Notes': JsonConverters.toJson(Notes,'List',context!), 'Carry': JsonConverters.toJson(Carry,'List',context!), 'CanPriority': CanPriority, 'Note': JsonConverters.toJson(Note,'CustomerNote',context!) }; getTypeName() => "CustomerNoteResponse"; TypeContext? context = _ctx; } // @Route("/v1/customercheckins/{Id}/notes/{NoteId}/done", "POST,OPTIONS") class CustomerNoteDoneRequest implements IReturn, IConvertible, IPost { String? Id; int? NoteId; CustomerNoteDoneRequest({this.Id,this.NoteId}); CustomerNoteDoneRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Id = json['Id']; NoteId = json['NoteId']; return this; } Map toJson() => { 'Id': Id, 'NoteId': NoteId }; createResponse() => CustomerNoteResponse(); getResponseTypeName() => "CustomerNoteResponse"; getTypeName() => "CustomerNoteDoneRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'api.dev.dynamics.trendsic.com', types: { 'CustomerNote': TypeInfo(TypeOf.Class, create:() => CustomerNote()), 'CustomerNoteResponse': TypeInfo(TypeOf.Class, create:() => CustomerNoteResponse()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'CustomerNoteDoneRequest': TypeInfo(TypeOf.Class, create:() => CustomerNoteDoneRequest()), });