/* Options: Date: 2024-12-29 04:08:34 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: AcademicSummaryRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart,dart:typed_data */ import 'package:servicestack/servicestack.dart'; import 'dart:typed_data'; class StudentProgramSimpleResponse implements IConvertible { ResponseStatus? responseStatus; int? regent_id; String? uuid; int? program_id; String? program_code; String? program_name; String? concentration_code; String? concentration_name; DateTime? start_date; DateTime? end_date; String? catalog; bool? is_active; bool? is_graduated; StudentProgramSimpleResponse({this.responseStatus,this.regent_id,this.uuid,this.program_id,this.program_code,this.program_name,this.concentration_code,this.concentration_name,this.start_date,this.end_date,this.catalog,this.is_active,this.is_graduated}); StudentProgramSimpleResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { responseStatus = JsonConverters.fromJson(json['responseStatus'],'ResponseStatus',context!); regent_id = json['regent_id']; uuid = json['uuid']; program_id = json['program_id']; program_code = json['program_code']; program_name = json['program_name']; concentration_code = json['concentration_code']; concentration_name = json['concentration_name']; start_date = JsonConverters.fromJson(json['start_date'],'DateTime',context!); end_date = JsonConverters.fromJson(json['end_date'],'DateTime',context!); catalog = json['catalog']; is_active = json['is_active']; is_graduated = json['is_graduated']; return this; } Map toJson() => { 'responseStatus': JsonConverters.toJson(responseStatus,'ResponseStatus',context!), 'regent_id': regent_id, 'uuid': uuid, 'program_id': program_id, 'program_code': program_code, 'program_name': program_name, 'concentration_code': concentration_code, 'concentration_name': concentration_name, 'start_date': JsonConverters.toJson(start_date,'DateTime',context!), 'end_date': JsonConverters.toJson(end_date,'DateTime',context!), 'catalog': catalog, 'is_active': is_active, 'is_graduated': is_graduated }; getTypeName() => "StudentProgramSimpleResponse"; TypeContext? context = _ctx; } class AcademicSummaryResponse implements IConvertible { ResponseStatus? responseStatus; int? regent_id; String? uuid; double? gpa; List? student_programs; String? unofficial_undergraduate_degree_description; List? messages; AcademicSummaryResponse({this.responseStatus,this.regent_id,this.uuid,this.gpa,this.student_programs,this.unofficial_undergraduate_degree_description,this.messages}); AcademicSummaryResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { responseStatus = JsonConverters.fromJson(json['responseStatus'],'ResponseStatus',context!); regent_id = json['regent_id']; uuid = json['uuid']; gpa = JsonConverters.toDouble(json['gpa']); student_programs = JsonConverters.fromJson(json['student_programs'],'List',context!); unofficial_undergraduate_degree_description = json['unofficial_undergraduate_degree_description']; messages = JsonConverters.fromJson(json['messages'],'List',context!); return this; } Map toJson() => { 'responseStatus': JsonConverters.toJson(responseStatus,'ResponseStatus',context!), 'regent_id': regent_id, 'uuid': uuid, 'gpa': gpa, 'student_programs': JsonConverters.toJson(student_programs,'List',context!), 'unofficial_undergraduate_degree_description': unofficial_undergraduate_degree_description, 'messages': JsonConverters.toJson(messages,'List',context!) }; getTypeName() => "AcademicSummaryResponse"; TypeContext? context = _ctx; } // @Route("/Academic/{uuid}/Summary", "POST") class AcademicSummaryRequest implements IReturn, IConvertible, IPost { String? uuid; AcademicSummaryRequest({this.uuid}); AcademicSummaryRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { uuid = json['uuid']; return this; } Map toJson() => { 'uuid': uuid }; createResponse() => AcademicSummaryResponse(); getResponseTypeName() => "AcademicSummaryResponse"; getTypeName() => "AcademicSummaryRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'data.regent_college.edu', types: { 'StudentProgramSimpleResponse': TypeInfo(TypeOf.Class, create:() => StudentProgramSimpleResponse()), 'AcademicSummaryResponse': TypeInfo(TypeOf.Class, create:() => AcademicSummaryResponse()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'AcademicSummaryRequest': TypeInfo(TypeOf.Class, create:() => AcademicSummaryRequest()), });