/* Options: Date: 2026-07-09 19:39:59 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: FieldLogListRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class FieldLogSummary implements IConvertible { String? FieldLogUID; int? ProjectId; String? LogDate; String? Status; double? CrewHoursTotal; String? SubmittedBy; DateTime? SubmittedAt; FieldLogSummary({this.FieldLogUID,this.ProjectId,this.LogDate,this.Status,this.CrewHoursTotal,this.SubmittedBy,this.SubmittedAt}); FieldLogSummary.fromJson(Map json) { fromMap(json); } fromMap(Map json) { FieldLogUID = json['FieldLogUID']; ProjectId = json['ProjectId']; LogDate = json['LogDate']; Status = json['Status']; CrewHoursTotal = JsonConverters.toDouble(json['CrewHoursTotal']); SubmittedBy = json['SubmittedBy']; SubmittedAt = JsonConverters.fromJson(json['SubmittedAt'],'DateTime',context!); return this; } Map toJson() => { 'FieldLogUID': FieldLogUID, 'ProjectId': ProjectId, 'LogDate': LogDate, 'Status': Status, 'CrewHoursTotal': CrewHoursTotal, 'SubmittedBy': SubmittedBy, 'SubmittedAt': JsonConverters.toJson(SubmittedAt,'DateTime',context!) }; getTypeName() => "FieldLogSummary"; TypeContext? context = _ctx; } class FieldLogListResponse implements IConvertible { ResponseStatus? ResponseStatus; List? Logs = []; FieldLogListResponse({this.ResponseStatus,this.Logs}); FieldLogListResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { ResponseStatus = JsonConverters.fromJson(json['ResponseStatus'],'ResponseStatus',context!); Logs = JsonConverters.fromJson(json['Logs'],'List',context!); return this; } Map toJson() => { 'ResponseStatus': JsonConverters.toJson(ResponseStatus,'ResponseStatus',context!), 'Logs': JsonConverters.toJson(Logs,'List',context!) }; getTypeName() => "FieldLogListResponse"; TypeContext? context = _ctx; } // @Route("/v1/fieldlog", "GET,OPTIONS") class FieldLogListRequest implements IReturn, IConvertible, IGet { int? ProjectId; FieldLogListRequest({this.ProjectId}); FieldLogListRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { ProjectId = json['ProjectId']; return this; } Map toJson() => { 'ProjectId': ProjectId }; createResponse() => FieldLogListResponse(); getResponseTypeName() => "FieldLogListResponse"; getTypeName() => "FieldLogListRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'api.dev.dynamics.trendsic.com', types: { 'FieldLogSummary': TypeInfo(TypeOf.Class, create:() => FieldLogSummary()), 'FieldLogListResponse': TypeInfo(TypeOf.Class, create:() => FieldLogListResponse()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'FieldLogListRequest': TypeInfo(TypeOf.Class, create:() => FieldLogListRequest()), });