/* Options: Date: 2024-12-29 02:20:02 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: RegentDegreesRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart,dart:typed_data */ import 'package:servicestack/servicestack.dart'; import 'dart:typed_data'; class RegentDegreeResponse implements IConvertible { int? id; String? program_code; String? program_name; String? concentration_code; String? concentration_name; DateTime? graduation_month; DateTime? start_date; DateTime? end_date; double? gpa; String? academic_level; DateTime? commencement_date; DateTime? added_date; String? added_by; DateTime? changed_date; String? changed_by; DateTime? timestamp; RegentDegreeResponse({this.id,this.program_code,this.program_name,this.concentration_code,this.concentration_name,this.graduation_month,this.start_date,this.end_date,this.gpa,this.academic_level,this.commencement_date,this.added_date,this.added_by,this.changed_date,this.changed_by,this.timestamp}); RegentDegreeResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { id = json['id']; program_code = json['program_code']; program_name = json['program_name']; concentration_code = json['concentration_code']; concentration_name = json['concentration_name']; graduation_month = JsonConverters.fromJson(json['graduation_month'],'DateTime',context!); start_date = JsonConverters.fromJson(json['start_date'],'DateTime',context!); end_date = JsonConverters.fromJson(json['end_date'],'DateTime',context!); gpa = JsonConverters.toDouble(json['gpa']); academic_level = json['academic_level']; commencement_date = JsonConverters.fromJson(json['commencement_date'],'DateTime',context!); added_date = JsonConverters.fromJson(json['added_date'],'DateTime',context!); added_by = json['added_by']; changed_date = JsonConverters.fromJson(json['changed_date'],'DateTime',context!); changed_by = json['changed_by']; timestamp = JsonConverters.fromJson(json['timestamp'],'DateTime',context!); return this; } Map toJson() => { 'id': id, 'program_code': program_code, 'program_name': program_name, 'concentration_code': concentration_code, 'concentration_name': concentration_name, 'graduation_month': JsonConverters.toJson(graduation_month,'DateTime',context!), 'start_date': JsonConverters.toJson(start_date,'DateTime',context!), 'end_date': JsonConverters.toJson(end_date,'DateTime',context!), 'gpa': gpa, 'academic_level': academic_level, 'commencement_date': JsonConverters.toJson(commencement_date,'DateTime',context!), 'added_date': JsonConverters.toJson(added_date,'DateTime',context!), 'added_by': added_by, 'changed_date': JsonConverters.toJson(changed_date,'DateTime',context!), 'changed_by': changed_by, 'timestamp': JsonConverters.toJson(timestamp,'DateTime',context!) }; getTypeName() => "RegentDegreeResponse"; TypeContext? context = _ctx; } class ProgramResponse implements IConvertible { ResponseStatus? responseStatus; int? id; String? program_code; String? program_pretty_code; String? program_long_name; String? available_concentrations; bool? is_active; DateTime? timestamp; ProgramResponse({this.responseStatus,this.id,this.program_code,this.program_pretty_code,this.program_long_name,this.available_concentrations,this.is_active,this.timestamp}); ProgramResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { responseStatus = JsonConverters.fromJson(json['responseStatus'],'ResponseStatus',context!); id = json['id']; program_code = json['program_code']; program_pretty_code = json['program_pretty_code']; program_long_name = json['program_long_name']; available_concentrations = json['available_concentrations']; is_active = json['is_active']; timestamp = JsonConverters.fromJson(json['timestamp'],'DateTime',context!); return this; } Map toJson() => { 'responseStatus': JsonConverters.toJson(responseStatus,'ResponseStatus',context!), 'id': id, 'program_code': program_code, 'program_pretty_code': program_pretty_code, 'program_long_name': program_long_name, 'available_concentrations': available_concentrations, 'is_active': is_active, 'timestamp': JsonConverters.toJson(timestamp,'DateTime',context!) }; getTypeName() => "ProgramResponse"; TypeContext? context = _ctx; } class ConcentrationResponse implements IConvertible { ResponseStatus? responseStatus; int? id; String? concentration_code; String? concentration_name; bool? is_active; ConcentrationResponse({this.responseStatus,this.id,this.concentration_code,this.concentration_name,this.is_active}); ConcentrationResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { responseStatus = JsonConverters.fromJson(json['responseStatus'],'ResponseStatus',context!); id = json['id']; concentration_code = json['concentration_code']; concentration_name = json['concentration_name']; is_active = json['is_active']; return this; } Map toJson() => { 'responseStatus': JsonConverters.toJson(responseStatus,'ResponseStatus',context!), 'id': id, 'concentration_code': concentration_code, 'concentration_name': concentration_name, 'is_active': is_active }; getTypeName() => "ConcentrationResponse"; TypeContext? context = _ctx; } class CatalogResponse implements IConvertible { ResponseStatus? responseStatus; int? id; String? catalog_code; CatalogResponse({this.responseStatus,this.id,this.catalog_code}); CatalogResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { responseStatus = JsonConverters.fromJson(json['responseStatus'],'ResponseStatus',context!); id = json['id']; catalog_code = json['catalog_code']; return this; } Map toJson() => { 'responseStatus': JsonConverters.toJson(responseStatus,'ResponseStatus',context!), 'id': id, 'catalog_code': catalog_code }; getTypeName() => "CatalogResponse"; TypeContext? context = _ctx; } class RegentDegreesResponse implements IConvertible { ResponseStatus? responseStatus; int? regent_id; String? uuid; List? regent_degrees; List? valid_programs; List? valid_concentrations; List? valid_catalogs; RegentDegreesResponse({this.responseStatus,this.regent_id,this.uuid,this.regent_degrees,this.valid_programs,this.valid_concentrations,this.valid_catalogs}); RegentDegreesResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { responseStatus = JsonConverters.fromJson(json['responseStatus'],'ResponseStatus',context!); regent_id = json['regent_id']; uuid = json['uuid']; regent_degrees = JsonConverters.fromJson(json['regent_degrees'],'List',context!); valid_programs = JsonConverters.fromJson(json['valid_programs'],'List',context!); valid_concentrations = JsonConverters.fromJson(json['valid_concentrations'],'List',context!); valid_catalogs = JsonConverters.fromJson(json['valid_catalogs'],'List',context!); return this; } Map toJson() => { 'responseStatus': JsonConverters.toJson(responseStatus,'ResponseStatus',context!), 'regent_id': regent_id, 'uuid': uuid, 'regent_degrees': JsonConverters.toJson(regent_degrees,'List',context!), 'valid_programs': JsonConverters.toJson(valid_programs,'List',context!), 'valid_concentrations': JsonConverters.toJson(valid_concentrations,'List',context!), 'valid_catalogs': JsonConverters.toJson(valid_catalogs,'List',context!) }; getTypeName() => "RegentDegreesResponse"; TypeContext? context = _ctx; } // @Route("/Academic/{uuid}/RegentDegrees", "POST") class RegentDegreesRequest implements IReturn, IConvertible, IPost { String? uuid; RegentDegreesRequest({this.uuid}); RegentDegreesRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { uuid = json['uuid']; return this; } Map toJson() => { 'uuid': uuid }; createResponse() => RegentDegreesResponse(); getResponseTypeName() => "RegentDegreesResponse"; getTypeName() => "RegentDegreesRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'data.regent_college.edu', types: { 'RegentDegreeResponse': TypeInfo(TypeOf.Class, create:() => RegentDegreeResponse()), 'ProgramResponse': TypeInfo(TypeOf.Class, create:() => ProgramResponse()), 'ConcentrationResponse': TypeInfo(TypeOf.Class, create:() => ConcentrationResponse()), 'CatalogResponse': TypeInfo(TypeOf.Class, create:() => CatalogResponse()), 'RegentDegreesResponse': TypeInfo(TypeOf.Class, create:() => RegentDegreesResponse()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'List': TypeInfo(TypeOf.Class, create:() => []), 'List': TypeInfo(TypeOf.Class, create:() => []), 'List': TypeInfo(TypeOf.Class, create:() => []), 'RegentDegreesRequest': TypeInfo(TypeOf.Class, create:() => RegentDegreesRequest()), });