/* Options: Date: 2026-10-31 22:45:40 Version: 8.30 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://freemotion-staging.milliet.paris/ws-cl //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: cr_photoRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class _cr_photo implements IConvertible { String? id_cr; String? id_tournee; String? num_facture; int? type; int? index; String? path; String? photo; String? photo_light; String? date; double? latitude; double? longitude; _cr_photo({this.id_cr,this.id_tournee,this.num_facture,this.type,this.index,this.path,this.photo,this.photo_light,this.date,this.latitude,this.longitude}); _cr_photo.fromJson(Map json) { fromMap(json); } fromMap(Map json) { id_cr = json['id_cr']; id_tournee = json['id_tournee']; num_facture = json['num_facture']; type = json['type']; index = json['index']; path = json['path']; photo = json['photo']; photo_light = json['photo_light']; date = json['date']; latitude = JsonConverters.toDouble(json['latitude']); longitude = JsonConverters.toDouble(json['longitude']); return this; } Map toJson() => { 'id_cr': id_cr, 'id_tournee': id_tournee, 'num_facture': num_facture, 'type': type, 'index': index, 'path': path, 'photo': photo, 'photo_light': photo_light, 'date': date, 'latitude': latitude, 'longitude': longitude }; getTypeName() => "_cr_photo"; TypeContext? context = _ctx; } class cr_photoResponse implements IConvertible { String? id_cr; String? id_tournee; List<_cr_photo>? multi_photos; cr_photoResponse({this.id_cr,this.id_tournee,this.multi_photos}); cr_photoResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { id_cr = json['id_cr']; id_tournee = json['id_tournee']; multi_photos = JsonConverters.fromJson(json['multi_photos'],'List<_cr_photo>',context!); return this; } Map toJson() => { 'id_cr': id_cr, 'id_tournee': id_tournee, 'multi_photos': JsonConverters.toJson(multi_photos,'List<_cr_photo>',context!) }; getTypeName() => "cr_photoResponse"; TypeContext? context = _ctx; } // @Route("/cr_photo/{id_cr}/{id_tournee}", "GET, POST") class cr_photoRequest implements IReturn, IConvertible, IGet { String? id_cr; String? id_tournee; List<_cr_photo>? multi_photos; cr_photoRequest({this.id_cr,this.id_tournee,this.multi_photos}); cr_photoRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { id_cr = json['id_cr']; id_tournee = json['id_tournee']; multi_photos = JsonConverters.fromJson(json['multi_photos'],'List<_cr_photo>',context!); return this; } Map toJson() => { 'id_cr': id_cr, 'id_tournee': id_tournee, 'multi_photos': JsonConverters.toJson(multi_photos,'List<_cr_photo>',context!) }; createResponse() => cr_photoResponse(); getResponseTypeName() => "cr_photoResponse"; getTypeName() => "cr_photoRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'freemotion_staging.milliet.paris', types: { '_cr_photo': TypeInfo(TypeOf.Class, create:() => _cr_photo()), 'cr_photoResponse': TypeInfo(TypeOf.Class, create:() => cr_photoResponse()), 'List<_cr_photo>': TypeInfo(TypeOf.Class, create:() => <_cr_photo>[]), 'cr_photoRequest': TypeInfo(TypeOf.Class, create:() => cr_photoRequest()), });