/* Options: Date: 2026-07-08 19:28: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: FieldLogSubmitRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class FieldLogCrew implements IConvertible { int? ContactId; String? StatusCode; double? Hours; String? CostCode; String? SplitCostCode; double? SplitHours; FieldLogCrew({this.ContactId,this.StatusCode,this.Hours,this.CostCode,this.SplitCostCode,this.SplitHours}); FieldLogCrew.fromJson(Map json) { fromMap(json); } fromMap(Map json) { ContactId = json['ContactId']; StatusCode = json['StatusCode']; Hours = JsonConverters.toDouble(json['Hours']); CostCode = json['CostCode']; SplitCostCode = json['SplitCostCode']; SplitHours = JsonConverters.toDouble(json['SplitHours']); return this; } Map toJson() => { 'ContactId': ContactId, 'StatusCode': StatusCode, 'Hours': Hours, 'CostCode': CostCode, 'SplitCostCode': SplitCostCode, 'SplitHours': SplitHours }; getTypeName() => "FieldLogCrew"; TypeContext? context = _ctx; } class FieldLogEquipment implements IConvertible { int? EquipmentId; String? EquipmentKey; String? StatusCode; double? EngineHours; double? FuelGallons; String? IdleReason; String? DownNote; FieldLogEquipment({this.EquipmentId,this.EquipmentKey,this.StatusCode,this.EngineHours,this.FuelGallons,this.IdleReason,this.DownNote}); FieldLogEquipment.fromJson(Map json) { fromMap(json); } fromMap(Map json) { EquipmentId = json['EquipmentId']; EquipmentKey = json['EquipmentKey']; StatusCode = json['StatusCode']; EngineHours = JsonConverters.toDouble(json['EngineHours']); FuelGallons = JsonConverters.toDouble(json['FuelGallons']); IdleReason = json['IdleReason']; DownNote = json['DownNote']; return this; } Map toJson() => { 'EquipmentId': EquipmentId, 'EquipmentKey': EquipmentKey, 'StatusCode': StatusCode, 'EngineHours': EngineHours, 'FuelGallons': FuelGallons, 'IdleReason': IdleReason, 'DownNote': DownNote }; getTypeName() => "FieldLogEquipment"; TypeContext? context = _ctx; } class FieldLogSub implements IConvertible { int? ContactId; String? Name; String? Trade; int? HeadCount; double? HoursPer; String? SourceCode; String? Reporter; String? Note; bool? Verified; String? StateCode; FieldLogSub({this.ContactId,this.Name,this.Trade,this.HeadCount,this.HoursPer,this.SourceCode,this.Reporter,this.Note,this.Verified,this.StateCode}); FieldLogSub.fromJson(Map json) { fromMap(json); } fromMap(Map json) { ContactId = json['ContactId']; Name = json['Name']; Trade = json['Trade']; HeadCount = json['HeadCount']; HoursPer = JsonConverters.toDouble(json['HoursPer']); SourceCode = json['SourceCode']; Reporter = json['Reporter']; Note = json['Note']; Verified = json['Verified']; StateCode = json['StateCode']; return this; } Map toJson() => { 'ContactId': ContactId, 'Name': Name, 'Trade': Trade, 'HeadCount': HeadCount, 'HoursPer': HoursPer, 'SourceCode': SourceCode, 'Reporter': Reporter, 'Note': Note, 'Verified': Verified, 'StateCode': StateCode }; getTypeName() => "FieldLogSub"; TypeContext? context = _ctx; } class FieldLogQuantity implements IConvertible { String? PayItemCode; String? Name; String? Unit; double? TodayQty; FieldLogQuantity({this.PayItemCode,this.Name,this.Unit,this.TodayQty}); FieldLogQuantity.fromJson(Map json) { fromMap(json); } fromMap(Map json) { PayItemCode = json['PayItemCode']; Name = json['Name']; Unit = json['Unit']; TodayQty = JsonConverters.toDouble(json['TodayQty']); return this; } Map toJson() => { 'PayItemCode': PayItemCode, 'Name': Name, 'Unit': Unit, 'TodayQty': TodayQty }; getTypeName() => "FieldLogQuantity"; TypeContext? context = _ctx; } class FieldLogDelivery implements IConvertible { String? Po; String? Material; String? StatusCode; String? QtyReceived; FieldLogDelivery({this.Po,this.Material,this.StatusCode,this.QtyReceived}); FieldLogDelivery.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Po = json['Po']; Material = json['Material']; StatusCode = json['StatusCode']; QtyReceived = json['QtyReceived']; return this; } Map toJson() => { 'Po': Po, 'Material': Material, 'StatusCode': StatusCode, 'QtyReceived': QtyReceived }; getTypeName() => "FieldLogDelivery"; TypeContext? context = _ctx; } class FieldLogConsumed implements IConvertible { String? Name; String? Qty; String? Use; FieldLogConsumed({this.Name,this.Qty,this.Use}); FieldLogConsumed.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Name = json['Name']; Qty = json['Qty']; Use = json['Use']; return this; } Map toJson() => { 'Name': Name, 'Qty': Qty, 'Use': Use }; getTypeName() => "FieldLogConsumed"; TypeContext? context = _ctx; } class FieldLogSubmitResponse implements IConvertible { ResponseStatus? ResponseStatus; int? FieldLogId; String? FieldLogUID; String? Status; FieldLogSubmitResponse({this.ResponseStatus,this.FieldLogId,this.FieldLogUID,this.Status}); FieldLogSubmitResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { ResponseStatus = JsonConverters.fromJson(json['ResponseStatus'],'ResponseStatus',context!); FieldLogId = json['FieldLogId']; FieldLogUID = json['FieldLogUID']; Status = json['Status']; return this; } Map toJson() => { 'ResponseStatus': JsonConverters.toJson(ResponseStatus,'ResponseStatus',context!), 'FieldLogId': FieldLogId, 'FieldLogUID': FieldLogUID, 'Status': Status }; getTypeName() => "FieldLogSubmitResponse"; TypeContext? context = _ctx; } // @Route("/v1/fieldlog/submit", "POST,OPTIONS") class FieldLogSubmitRequest implements IReturn, IConvertible, IPost { int? ProjectId; int? JobId; String? LogDate; String? Notes; String? Weather; int? TempF; double? WeatherDelayHours; String? ToolboxTalk; bool? IncidentOccurred; String? IncidentType; String? IncidentNote; int? IncidentPhotoCount; List? Crew = []; List? Equipment = []; List? Subs = []; List? Quantities = []; List? Deliveries = []; List? Consumed = []; FieldLogSubmitRequest({this.ProjectId,this.JobId,this.LogDate,this.Notes,this.Weather,this.TempF,this.WeatherDelayHours,this.ToolboxTalk,this.IncidentOccurred,this.IncidentType,this.IncidentNote,this.IncidentPhotoCount,this.Crew,this.Equipment,this.Subs,this.Quantities,this.Deliveries,this.Consumed}); FieldLogSubmitRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { ProjectId = json['ProjectId']; JobId = json['JobId']; LogDate = json['LogDate']; Notes = json['Notes']; Weather = json['Weather']; TempF = json['TempF']; WeatherDelayHours = JsonConverters.toDouble(json['WeatherDelayHours']); ToolboxTalk = json['ToolboxTalk']; IncidentOccurred = json['IncidentOccurred']; IncidentType = json['IncidentType']; IncidentNote = json['IncidentNote']; IncidentPhotoCount = json['IncidentPhotoCount']; Crew = JsonConverters.fromJson(json['Crew'],'List',context!); Equipment = JsonConverters.fromJson(json['Equipment'],'List',context!); Subs = JsonConverters.fromJson(json['Subs'],'List',context!); Quantities = JsonConverters.fromJson(json['Quantities'],'List',context!); Deliveries = JsonConverters.fromJson(json['Deliveries'],'List',context!); Consumed = JsonConverters.fromJson(json['Consumed'],'List',context!); return this; } Map toJson() => { 'ProjectId': ProjectId, 'JobId': JobId, 'LogDate': LogDate, 'Notes': Notes, 'Weather': Weather, 'TempF': TempF, 'WeatherDelayHours': WeatherDelayHours, 'ToolboxTalk': ToolboxTalk, 'IncidentOccurred': IncidentOccurred, 'IncidentType': IncidentType, 'IncidentNote': IncidentNote, 'IncidentPhotoCount': IncidentPhotoCount, 'Crew': JsonConverters.toJson(Crew,'List',context!), 'Equipment': JsonConverters.toJson(Equipment,'List',context!), 'Subs': JsonConverters.toJson(Subs,'List',context!), 'Quantities': JsonConverters.toJson(Quantities,'List',context!), 'Deliveries': JsonConverters.toJson(Deliveries,'List',context!), 'Consumed': JsonConverters.toJson(Consumed,'List',context!) }; createResponse() => FieldLogSubmitResponse(); getResponseTypeName() => "FieldLogSubmitResponse"; getTypeName() => "FieldLogSubmitRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'api.dev.dynamics.trendsic.com', types: { 'FieldLogCrew': TypeInfo(TypeOf.Class, create:() => FieldLogCrew()), 'FieldLogEquipment': TypeInfo(TypeOf.Class, create:() => FieldLogEquipment()), 'FieldLogSub': TypeInfo(TypeOf.Class, create:() => FieldLogSub()), 'FieldLogQuantity': TypeInfo(TypeOf.Class, create:() => FieldLogQuantity()), 'FieldLogDelivery': TypeInfo(TypeOf.Class, create:() => FieldLogDelivery()), 'FieldLogConsumed': TypeInfo(TypeOf.Class, create:() => FieldLogConsumed()), 'FieldLogSubmitResponse': TypeInfo(TypeOf.Class, create:() => FieldLogSubmitResponse()), 'FieldLogSubmitRequest': TypeInfo(TypeOf.Class, create:() => FieldLogSubmitRequest()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'List': TypeInfo(TypeOf.Class, create:() => []), 'List': TypeInfo(TypeOf.Class, create:() => []), 'List': TypeInfo(TypeOf.Class, create:() => []), 'List': TypeInfo(TypeOf.Class, create:() => []), 'List': TypeInfo(TypeOf.Class, create:() => []), });