/* Options: Date: 2024-11-23 01:27:57 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: ResourceItemProgressRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class ResourceItemProgressResponse implements IConvertible { int? memberResourceProgressID; ResourceItemProgressResponse({this.memberResourceProgressID}); ResourceItemProgressResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { memberResourceProgressID = json['memberResourceProgressID']; return this; } Map toJson() => { 'memberResourceProgressID': memberResourceProgressID }; getTypeName() => "ResourceItemProgressResponse"; TypeContext? context = _ctx; } // @Route("/resourceProgress", "PUT") class ResourceItemProgressRequest implements IReturn, IConvertible { int? memberId; String? resourceId; int? percentageCompleted; bool? isCompleted; ResourceItemProgressRequest({this.memberId,this.resourceId,this.percentageCompleted,this.isCompleted}); ResourceItemProgressRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { memberId = json['memberId']; resourceId = json['resourceId']; percentageCompleted = json['percentageCompleted']; isCompleted = json['isCompleted']; return this; } Map toJson() => { 'memberId': memberId, 'resourceId': resourceId, 'percentageCompleted': percentageCompleted, 'isCompleted': isCompleted }; createResponse() => ResourceItemProgressResponse(); getResponseTypeName() => "ResourceItemProgressResponse"; getTypeName() => "ResourceItemProgressRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'resourcelibrary.api.ashcompanies.com', types: { 'ResourceItemProgressResponse': TypeInfo(TypeOf.Class, create:() => ResourceItemProgressResponse()), 'ResourceItemProgressRequest': TypeInfo(TypeOf.Class, create:() => ResourceItemProgressRequest()), });