/* Options: Date: 2024-12-29 04:08:48 Version: 8.22 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://data.regent-college.edu //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: CorrespondenceRequestedRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart,dart:typed_data */ import 'package:servicestack/servicestack.dart'; import 'dart:typed_data'; class CorrespondenceRequestedResponse implements IConvertible { ResponseStatus? responseStatus; int? regent_id; String? request_code; String? request_description; String? request_instance; String? request_status; DateTime? request_date; DateTime? request_assigned_date; CorrespondenceRequestedResponse({this.responseStatus,this.regent_id,this.request_code,this.request_description,this.request_instance,this.request_status,this.request_date,this.request_assigned_date}); CorrespondenceRequestedResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { responseStatus = JsonConverters.fromJson(json['responseStatus'],'ResponseStatus',context!); regent_id = json['regent_id']; request_code = json['request_code']; request_description = json['request_description']; request_instance = json['request_instance']; request_status = json['request_status']; request_date = JsonConverters.fromJson(json['request_date'],'DateTime',context!); request_assigned_date = JsonConverters.fromJson(json['request_assigned_date'],'DateTime',context!); return this; } Map toJson() => { 'responseStatus': JsonConverters.toJson(responseStatus,'ResponseStatus',context!), 'regent_id': regent_id, 'request_code': request_code, 'request_description': request_description, 'request_instance': request_instance, 'request_status': request_status, 'request_date': JsonConverters.toJson(request_date,'DateTime',context!), 'request_assigned_date': JsonConverters.toJson(request_assigned_date,'DateTime',context!) }; getTypeName() => "CorrespondenceRequestedResponse"; TypeContext? context = _ctx; } // @Route("/correspondence", "POST") class CorrespondenceRequestedRequest implements IReturn, IConvertible, IPost { int? pid; String? token; CorrespondenceRequestedRequest({this.pid,this.token}); CorrespondenceRequestedRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { pid = json['pid']; token = json['token']; return this; } Map toJson() => { 'pid': pid, 'token': token }; createResponse() => CorrespondenceRequestedResponse(); getResponseTypeName() => "CorrespondenceRequestedResponse"; getTypeName() => "CorrespondenceRequestedRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'data.regent_college.edu', types: { 'CorrespondenceRequestedResponse': TypeInfo(TypeOf.Class, create:() => CorrespondenceRequestedResponse()), 'CorrespondenceRequestedRequest': TypeInfo(TypeOf.Class, create:() => CorrespondenceRequestedRequest()), });