/* Options: Date: 2026-07-09 19:40:32 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: FieldLogPhotoRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class FieldLogPhoto implements IConvertible { String? Key; String? Url; String? FileName; FieldLogPhoto({this.Key,this.Url,this.FileName}); FieldLogPhoto.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Key = json['Key']; Url = json['Url']; FileName = json['FileName']; return this; } Map toJson() => { 'Key': Key, 'Url': Url, 'FileName': FileName }; getTypeName() => "FieldLogPhoto"; TypeContext? context = _ctx; } class FieldLogPhotoResponse implements IConvertible { ResponseStatus? ResponseStatus; bool? Success; List? Photos = []; FieldLogPhotoResponse({this.ResponseStatus,this.Success,this.Photos}); FieldLogPhotoResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { ResponseStatus = JsonConverters.fromJson(json['ResponseStatus'],'ResponseStatus',context!); Success = json['Success']; Photos = JsonConverters.fromJson(json['Photos'],'List',context!); return this; } Map toJson() => { 'ResponseStatus': JsonConverters.toJson(ResponseStatus,'ResponseStatus',context!), 'Success': Success, 'Photos': JsonConverters.toJson(Photos,'List',context!) }; getTypeName() => "FieldLogPhotoResponse"; TypeContext? context = _ctx; } // @Route("/v1/fieldlog/photo", "POST,OPTIONS") class FieldLogPhotoRequest implements IReturn, IConvertible, IPost { String? FieldLogUID; String? Section; FieldLogPhotoRequest({this.FieldLogUID,this.Section}); FieldLogPhotoRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { FieldLogUID = json['FieldLogUID']; Section = json['Section']; return this; } Map toJson() => { 'FieldLogUID': FieldLogUID, 'Section': Section }; createResponse() => FieldLogPhotoResponse(); getResponseTypeName() => "FieldLogPhotoResponse"; getTypeName() => "FieldLogPhotoRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'api.dev.dynamics.trendsic.com', types: { 'FieldLogPhoto': TypeInfo(TypeOf.Class, create:() => FieldLogPhoto()), 'FieldLogPhotoResponse': TypeInfo(TypeOf.Class, create:() => FieldLogPhotoResponse()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'FieldLogPhotoRequest': TypeInfo(TypeOf.Class, create:() => FieldLogPhotoRequest()), });