/* Options: Date: 2025-12-06 05:26:51 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: LocationsRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart,dart:typed_data */ import 'package:servicestack/servicestack.dart'; import 'dart:typed_data'; class Location implements IConvertible { String? Id; String? ClientId; String? Name; String? Address1; String? Address2; String? City; String? State; String? Zip; String? Phone; String? Fax; String? TimeZone; bool? Active; DateTime? EntDate; DateTime? ModDate; Location({this.Id,this.ClientId,this.Name,this.Address1,this.Address2,this.City,this.State,this.Zip,this.Phone,this.Fax,this.TimeZone,this.Active,this.EntDate,this.ModDate}); Location.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Id = json['Id']; ClientId = json['ClientId']; Name = json['Name']; Address1 = json['Address1']; Address2 = json['Address2']; City = json['City']; State = json['State']; Zip = json['Zip']; Phone = json['Phone']; Fax = json['Fax']; TimeZone = json['TimeZone']; Active = json['Active']; EntDate = JsonConverters.fromJson(json['EntDate'],'DateTime',context!); ModDate = JsonConverters.fromJson(json['ModDate'],'DateTime',context!); return this; } Map toJson() => { 'Id': Id, 'ClientId': ClientId, 'Name': Name, 'Address1': Address1, 'Address2': Address2, 'City': City, 'State': State, 'Zip': Zip, 'Phone': Phone, 'Fax': Fax, 'TimeZone': TimeZone, 'Active': Active, 'EntDate': JsonConverters.toJson(EntDate,'DateTime',context!), 'ModDate': JsonConverters.toJson(ModDate,'DateTime',context!) }; getTypeName() => "Location"; TypeContext? context = _ctx; } class LocationsResponse implements IConvertible { ResponseStatus? ResponseStatus; List? Locations = []; LocationsResponse({this.ResponseStatus,this.Locations}); LocationsResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { ResponseStatus = JsonConverters.fromJson(json['ResponseStatus'],'ResponseStatus',context!); Locations = JsonConverters.fromJson(json['Locations'],'List',context!); return this; } Map toJson() => { 'ResponseStatus': JsonConverters.toJson(ResponseStatus,'ResponseStatus',context!), 'Locations': JsonConverters.toJson(Locations,'List',context!) }; getTypeName() => "LocationsResponse"; TypeContext? context = _ctx; } // @Route("/v1/Locations", "GET,POST,PUT,DELETE,OPTIONS") // @Route("/v1/Locations/{Id}", "GET,POST,PUT,DELETE,OPTIONS") class LocationsRequest implements IReturn, IConvertible, IPost { String? Id; List? Locations = []; LocationsRequest({this.Id,this.Locations}); LocationsRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Id = json['Id']; Locations = JsonConverters.fromJson(json['Locations'],'List',context!); return this; } Map toJson() => { 'Id': Id, 'Locations': JsonConverters.toJson(Locations,'List',context!) }; createResponse() => LocationsResponse(); getResponseTypeName() => "LocationsResponse"; getTypeName() => "LocationsRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'api.dev.dynamics.trendsic.com', types: { 'Location': TypeInfo(TypeOf.Class, create:() => Location()), 'LocationsResponse': TypeInfo(TypeOf.Class, create:() => LocationsResponse()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'LocationsRequest': TypeInfo(TypeOf.Class, create:() => LocationsRequest()), });