/* Options: Date: 2024-11-21 05:29:22 Version: 6.00 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://resourcelibrary.api.ashcompanies.com //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: ResourceItemCompletionRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class ResourceItemCompletion implements IConvertible { int? resourceCompletionId; int? resourceProgressId; int? progressOnCompletion; String? resourceId; String? resourceName; String? resourceType; DateTime? completionDate; ResourceItemCompletion({this.resourceCompletionId,this.resourceProgressId,this.progressOnCompletion,this.resourceId,this.resourceName,this.resourceType,this.completionDate}); ResourceItemCompletion.fromJson(Map json) { fromMap(json); } fromMap(Map json) { resourceCompletionId = json['resourceCompletionId']; resourceProgressId = json['resourceProgressId']; progressOnCompletion = json['progressOnCompletion']; resourceId = json['resourceId']; resourceName = json['resourceName']; resourceType = json['resourceType']; completionDate = JsonConverters.fromJson(json['completionDate'],'DateTime',context!); return this; } Map toJson() => { 'resourceCompletionId': resourceCompletionId, 'resourceProgressId': resourceProgressId, 'progressOnCompletion': progressOnCompletion, 'resourceId': resourceId, 'resourceName': resourceName, 'resourceType': resourceType, 'completionDate': JsonConverters.toJson(completionDate,'DateTime',context!) }; getTypeName() => "ResourceItemCompletion"; TypeContext? context = _ctx; } class ResourceItemCompletionResponse implements IConvertible { int? memberId; DateTime? startDate; DateTime? endDate; int? totalCompletions; int? retrievalAmount; List? resourceCompletions; ResourceItemCompletionResponse({this.memberId,this.startDate,this.endDate,this.totalCompletions,this.retrievalAmount,this.resourceCompletions}); ResourceItemCompletionResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { memberId = json['memberId']; startDate = JsonConverters.fromJson(json['startDate'],'DateTime',context!); endDate = JsonConverters.fromJson(json['endDate'],'DateTime',context!); totalCompletions = json['totalCompletions']; retrievalAmount = json['retrievalAmount']; resourceCompletions = JsonConverters.fromJson(json['resourceCompletions'],'List',context!); return this; } Map toJson() => { 'memberId': memberId, 'startDate': JsonConverters.toJson(startDate,'DateTime',context!), 'endDate': JsonConverters.toJson(endDate,'DateTime',context!), 'totalCompletions': totalCompletions, 'retrievalAmount': retrievalAmount, 'resourceCompletions': JsonConverters.toJson(resourceCompletions,'List',context!) }; getTypeName() => "ResourceItemCompletionResponse"; TypeContext? context = _ctx; } // @Route("/memberResourceCompletions/{MemberId}/{StartDate}/{EndDate}", "GET") // @Route("/memberResourceCompletions/{MemberId}/{StartDate}/{EndDate}/{ResourceType}", "GET") // @Route("/memberResourceCompletions/{MemberId}/{StartDate}/{EndDate}/{ResourceType}/{RetrievalAmount}", "GET") class ResourceItemCompletionRequest implements IReturn, IConvertible { int? memberId; DateTime? startDate; DateTime? endDate; String? resourceType; int? retrievalAmount; ResourceItemCompletionRequest({this.memberId,this.startDate,this.endDate,this.resourceType,this.retrievalAmount}); ResourceItemCompletionRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { memberId = json['memberId']; startDate = JsonConverters.fromJson(json['startDate'],'DateTime',context!); endDate = JsonConverters.fromJson(json['endDate'],'DateTime',context!); resourceType = json['resourceType']; retrievalAmount = json['retrievalAmount']; return this; } Map toJson() => { 'memberId': memberId, 'startDate': JsonConverters.toJson(startDate,'DateTime',context!), 'endDate': JsonConverters.toJson(endDate,'DateTime',context!), 'resourceType': resourceType, 'retrievalAmount': retrievalAmount }; createResponse() => ResourceItemCompletionResponse(); getResponseTypeName() => "ResourceItemCompletionResponse"; getTypeName() => "ResourceItemCompletionRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'resourcelibrary.api.ashcompanies.com', types: { 'ResourceItemCompletion': TypeInfo(TypeOf.Class, create:() => ResourceItemCompletion()), 'ResourceItemCompletionResponse': TypeInfo(TypeOf.Class, create:() => ResourceItemCompletionResponse()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'ResourceItemCompletionRequest': TypeInfo(TypeOf.Class, create:() => ResourceItemCompletionRequest()), });