/* Options: Date: 2026-07-08 21:12:21 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: FieldLogPrefillRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class FieldLogCrewPrefill implements IConvertible { int? ContactId; String? Name; String? Role; double? DefaultHours; String? CostCode; FieldLogCrewPrefill({this.ContactId,this.Name,this.Role,this.DefaultHours,this.CostCode}); FieldLogCrewPrefill.fromJson(Map json) { fromMap(json); } fromMap(Map json) { ContactId = json['ContactId']; Name = json['Name']; Role = json['Role']; DefaultHours = JsonConverters.toDouble(json['DefaultHours']); CostCode = json['CostCode']; return this; } Map toJson() => { 'ContactId': ContactId, 'Name': Name, 'Role': Role, 'DefaultHours': DefaultHours, 'CostCode': CostCode }; getTypeName() => "FieldLogCrewPrefill"; TypeContext? context = _ctx; } class FieldLogEquipmentPrefill implements IConvertible { int? EquipmentId; String? Name; String? Code; FieldLogEquipmentPrefill({this.EquipmentId,this.Name,this.Code}); FieldLogEquipmentPrefill.fromJson(Map json) { fromMap(json); } fromMap(Map json) { EquipmentId = json['EquipmentId']; Name = json['Name']; Code = json['Code']; return this; } Map toJson() => { 'EquipmentId': EquipmentId, 'Name': Name, 'Code': Code }; getTypeName() => "FieldLogEquipmentPrefill"; TypeContext? context = _ctx; } class FieldLogPayItemPrefill implements IConvertible { String? Code; String? Name; String? Unit; double? ToDate; double? Total; FieldLogPayItemPrefill({this.Code,this.Name,this.Unit,this.ToDate,this.Total}); FieldLogPayItemPrefill.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Code = json['Code']; Name = json['Name']; Unit = json['Unit']; ToDate = JsonConverters.toDouble(json['ToDate']); Total = JsonConverters.toDouble(json['Total']); return this; } Map toJson() => { 'Code': Code, 'Name': Name, 'Unit': Unit, 'ToDate': ToDate, 'Total': Total }; getTypeName() => "FieldLogPayItemPrefill"; TypeContext? context = _ctx; } class FieldLogSubPrefill implements IConvertible { int? ContactId; String? Name; String? Trade; FieldLogSubPrefill({this.ContactId,this.Name,this.Trade}); FieldLogSubPrefill.fromJson(Map json) { fromMap(json); } fromMap(Map json) { ContactId = json['ContactId']; Name = json['Name']; Trade = json['Trade']; return this; } Map toJson() => { 'ContactId': ContactId, 'Name': Name, 'Trade': Trade }; getTypeName() => "FieldLogSubPrefill"; TypeContext? context = _ctx; } class FieldLogPrefillResponse implements IConvertible { ResponseStatus? ResponseStatus; String? ProjectName; String? SolicitationNumber; String? StationRange; List? Crew = []; List? Equipment = []; List? PayItems = []; List? Subs = []; bool? PriorDayFilled; FieldLogPrefillResponse({this.ResponseStatus,this.ProjectName,this.SolicitationNumber,this.StationRange,this.Crew,this.Equipment,this.PayItems,this.Subs,this.PriorDayFilled}); FieldLogPrefillResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { ResponseStatus = JsonConverters.fromJson(json['ResponseStatus'],'ResponseStatus',context!); ProjectName = json['ProjectName']; SolicitationNumber = json['SolicitationNumber']; StationRange = json['StationRange']; Crew = JsonConverters.fromJson(json['Crew'],'List',context!); Equipment = JsonConverters.fromJson(json['Equipment'],'List',context!); PayItems = JsonConverters.fromJson(json['PayItems'],'List',context!); Subs = JsonConverters.fromJson(json['Subs'],'List',context!); PriorDayFilled = json['PriorDayFilled']; return this; } Map toJson() => { 'ResponseStatus': JsonConverters.toJson(ResponseStatus,'ResponseStatus',context!), 'ProjectName': ProjectName, 'SolicitationNumber': SolicitationNumber, 'StationRange': StationRange, 'Crew': JsonConverters.toJson(Crew,'List',context!), 'Equipment': JsonConverters.toJson(Equipment,'List',context!), 'PayItems': JsonConverters.toJson(PayItems,'List',context!), 'Subs': JsonConverters.toJson(Subs,'List',context!), 'PriorDayFilled': PriorDayFilled }; getTypeName() => "FieldLogPrefillResponse"; TypeContext? context = _ctx; } // @Route("/v1/fieldlog/prefill", "GET,OPTIONS") class FieldLogPrefillRequest implements IReturn, IConvertible, IGet { int? ProjectId; String? Date; FieldLogPrefillRequest({this.ProjectId,this.Date}); FieldLogPrefillRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { ProjectId = json['ProjectId']; Date = json['Date']; return this; } Map toJson() => { 'ProjectId': ProjectId, 'Date': Date }; createResponse() => FieldLogPrefillResponse(); getResponseTypeName() => "FieldLogPrefillResponse"; getTypeName() => "FieldLogPrefillRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'api.dev.dynamics.trendsic.com', types: { 'FieldLogCrewPrefill': TypeInfo(TypeOf.Class, create:() => FieldLogCrewPrefill()), 'FieldLogEquipmentPrefill': TypeInfo(TypeOf.Class, create:() => FieldLogEquipmentPrefill()), 'FieldLogPayItemPrefill': TypeInfo(TypeOf.Class, create:() => FieldLogPayItemPrefill()), 'FieldLogSubPrefill': TypeInfo(TypeOf.Class, create:() => FieldLogSubPrefill()), 'FieldLogPrefillResponse': TypeInfo(TypeOf.Class, create:() => FieldLogPrefillResponse()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'List': TypeInfo(TypeOf.Class, create:() => []), 'List': TypeInfo(TypeOf.Class, create:() => []), 'List': TypeInfo(TypeOf.Class, create:() => []), 'FieldLogPrefillRequest': TypeInfo(TypeOf.Class, create:() => FieldLogPrefillRequest()), });