/* Options: Date: 2024-12-29 03:53:32 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: SectionDocumentsRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart,dart:typed_data */ import 'package:servicestack/servicestack.dart'; import 'dart:typed_data'; class DocumentResponse implements IConvertible { String? code; String? document_name; String? document_description; DocumentResponse({this.code,this.document_name,this.document_description}); DocumentResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { code = json['code']; document_name = json['document_name']; document_description = json['document_description']; return this; } Map toJson() => { 'code': code, 'document_name': document_name, 'document_description': document_description }; getTypeName() => "DocumentResponse"; TypeContext? context = _ctx; } class SectionDocumentsResponse implements IConvertible { String? uuid; String? course_name; String? title; String? term; String? reporting_term; List? assigned_documents; List? available_documents; SectionDocumentsResponse({this.uuid,this.course_name,this.title,this.term,this.reporting_term,this.assigned_documents,this.available_documents}); SectionDocumentsResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { uuid = json['uuid']; course_name = json['course_name']; title = json['title']; term = json['term']; reporting_term = json['reporting_term']; assigned_documents = JsonConverters.fromJson(json['assigned_documents'],'List',context!); available_documents = JsonConverters.fromJson(json['available_documents'],'List',context!); return this; } Map toJson() => { 'uuid': uuid, 'course_name': course_name, 'title': title, 'term': term, 'reporting_term': reporting_term, 'assigned_documents': JsonConverters.toJson(assigned_documents,'List',context!), 'available_documents': JsonConverters.toJson(available_documents,'List',context!) }; getTypeName() => "SectionDocumentsResponse"; TypeContext? context = _ctx; } // @Route("/Sections/{uuid}/Documents", "POST") class SectionDocumentsRequest implements IReturn, IConvertible, IPost { String? uuid; SectionDocumentsRequest({this.uuid}); SectionDocumentsRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { uuid = json['uuid']; return this; } Map toJson() => { 'uuid': uuid }; createResponse() => SectionDocumentsResponse(); getResponseTypeName() => "SectionDocumentsResponse"; getTypeName() => "SectionDocumentsRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'data.regent_college.edu', types: { 'DocumentResponse': TypeInfo(TypeOf.Class, create:() => DocumentResponse()), 'SectionDocumentsResponse': TypeInfo(TypeOf.Class, create:() => SectionDocumentsResponse()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'SectionDocumentsRequest': TypeInfo(TypeOf.Class, create:() => SectionDocumentsRequest()), });