/* Options: Date: 2025-12-06 07:25:01 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: TermsAndConditionsRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart,dart:typed_data */ import 'package:servicestack/servicestack.dart'; import 'dart:typed_data'; class TermsAndCondition implements IConvertible { int? TermsAndConditionsId; DateTime? BeginDate; DateTime? ExpireDate; String? TermsAndConditionsText; TermsAndCondition({this.TermsAndConditionsId,this.BeginDate,this.ExpireDate,this.TermsAndConditionsText}); TermsAndCondition.fromJson(Map json) { fromMap(json); } fromMap(Map json) { TermsAndConditionsId = json['TermsAndConditionsId']; BeginDate = JsonConverters.fromJson(json['BeginDate'],'DateTime',context!); ExpireDate = JsonConverters.fromJson(json['ExpireDate'],'DateTime',context!); TermsAndConditionsText = json['TermsAndConditionsText']; return this; } Map toJson() => { 'TermsAndConditionsId': TermsAndConditionsId, 'BeginDate': JsonConverters.toJson(BeginDate,'DateTime',context!), 'ExpireDate': JsonConverters.toJson(ExpireDate,'DateTime',context!), 'TermsAndConditionsText': TermsAndConditionsText }; getTypeName() => "TermsAndCondition"; TypeContext? context = _ctx; } class TermsAndConditionsResponse implements IConvertible { ResponseStatus? ResponseStatus; List? TermsAndConditions = []; TermsAndConditionsResponse({this.ResponseStatus,this.TermsAndConditions}); TermsAndConditionsResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { ResponseStatus = JsonConverters.fromJson(json['ResponseStatus'],'ResponseStatus',context!); TermsAndConditions = JsonConverters.fromJson(json['TermsAndConditions'],'List',context!); return this; } Map toJson() => { 'ResponseStatus': JsonConverters.toJson(ResponseStatus,'ResponseStatus',context!), 'TermsAndConditions': JsonConverters.toJson(TermsAndConditions,'List',context!) }; getTypeName() => "TermsAndConditionsResponse"; TypeContext? context = _ctx; } // @Route("/v1/TermsAndConditions", "GET") class TermsAndConditionsRequest implements IReturn, IConvertible, IGet { String? Site; TermsAndConditionsRequest({this.Site}); TermsAndConditionsRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Site = json['Site']; return this; } Map toJson() => { 'Site': Site }; createResponse() => TermsAndConditionsResponse(); getResponseTypeName() => "TermsAndConditionsResponse"; getTypeName() => "TermsAndConditionsRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'api.dev.dynamics.trendsic.com', types: { 'TermsAndCondition': TypeInfo(TypeOf.Class, create:() => TermsAndCondition()), 'TermsAndConditionsResponse': TypeInfo(TypeOf.Class, create:() => TermsAndConditionsResponse()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'TermsAndConditionsRequest': TypeInfo(TypeOf.Class, create:() => TermsAndConditionsRequest()), });