/* Options: Date: 2024-10-06 10:27:43 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: CRMApplicationUpsertMultipleRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart,dart:typed_data */ import 'package:servicestack/servicestack.dart'; import 'dart:typed_data'; class CRMApplicationLanguageTestCreateRequest implements IConvertible { String? type; DateTime? test_date; double? score; bool? applicant_defined; String? status; CRMApplicationLanguageTestCreateRequest({this.type,this.test_date,this.score,this.applicant_defined,this.status}); CRMApplicationLanguageTestCreateRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { type = json['type']; test_date = JsonConverters.fromJson(json['test_date'],'DateTime',context!); score = JsonConverters.toDouble(json['score']); applicant_defined = json['applicant_defined']; status = json['status']; return this; } Map toJson() => { 'type': type, 'test_date': JsonConverters.toJson(test_date,'DateTime',context!), 'score': score, 'applicant_defined': applicant_defined, 'status': status }; getTypeName() => "CRMApplicationLanguageTestCreateRequest"; TypeContext? context = _ctx; } class CRMApplicationRefereeCreateRequest implements IConvertible { int? import_id; String? first_name; String? last_name; String? job_title; String? email; String? phone; String? type; String? full_name; String? position; String? organization; String? email_from_referee; String? relationship; String? relationship_details; String? personal_evaluation; int? ability_question_1; int? ability_question_2; int? ability_question_3; int? ability_question_4; int? ability_question_5; int? ability_question_6; int? ability_question_7; int? ability_question_8; int? ability_question_9; int? ability_question_10; String? qualify_assessment; String? recommendation; String? recommendation_details; bool? is_regent_alum; bool? is_complete; DateTime? email_sent; DateTime? submitted_date; CRMApplicationRefereeCreateRequest({this.import_id,this.first_name,this.last_name,this.job_title,this.email,this.phone,this.type,this.full_name,this.position,this.organization,this.email_from_referee,this.relationship,this.relationship_details,this.personal_evaluation,this.ability_question_1,this.ability_question_2,this.ability_question_3,this.ability_question_4,this.ability_question_5,this.ability_question_6,this.ability_question_7,this.ability_question_8,this.ability_question_9,this.ability_question_10,this.qualify_assessment,this.recommendation,this.recommendation_details,this.is_regent_alum,this.is_complete,this.email_sent,this.submitted_date}); CRMApplicationRefereeCreateRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { import_id = json['import_id']; first_name = json['first_name']; last_name = json['last_name']; job_title = json['job_title']; email = json['email']; phone = json['phone']; type = json['type']; full_name = json['full_name']; position = json['position']; organization = json['organization']; email_from_referee = json['email_from_referee']; relationship = json['relationship']; relationship_details = json['relationship_details']; personal_evaluation = json['personal_evaluation']; ability_question_1 = json['ability_question_1']; ability_question_2 = json['ability_question_2']; ability_question_3 = json['ability_question_3']; ability_question_4 = json['ability_question_4']; ability_question_5 = json['ability_question_5']; ability_question_6 = json['ability_question_6']; ability_question_7 = json['ability_question_7']; ability_question_8 = json['ability_question_8']; ability_question_9 = json['ability_question_9']; ability_question_10 = json['ability_question_10']; qualify_assessment = json['qualify_assessment']; recommendation = json['recommendation']; recommendation_details = json['recommendation_details']; is_regent_alum = json['is_regent_alum']; is_complete = json['is_complete']; email_sent = JsonConverters.fromJson(json['email_sent'],'DateTime',context!); submitted_date = JsonConverters.fromJson(json['submitted_date'],'DateTime',context!); return this; } Map toJson() => { 'import_id': import_id, 'first_name': first_name, 'last_name': last_name, 'job_title': job_title, 'email': email, 'phone': phone, 'type': type, 'full_name': full_name, 'position': position, 'organization': organization, 'email_from_referee': email_from_referee, 'relationship': relationship, 'relationship_details': relationship_details, 'personal_evaluation': personal_evaluation, 'ability_question_1': ability_question_1, 'ability_question_2': ability_question_2, 'ability_question_3': ability_question_3, 'ability_question_4': ability_question_4, 'ability_question_5': ability_question_5, 'ability_question_6': ability_question_6, 'ability_question_7': ability_question_7, 'ability_question_8': ability_question_8, 'ability_question_9': ability_question_9, 'ability_question_10': ability_question_10, 'qualify_assessment': qualify_assessment, 'recommendation': recommendation, 'recommendation_details': recommendation_details, 'is_regent_alum': is_regent_alum, 'is_complete': is_complete, 'email_sent': JsonConverters.toJson(email_sent,'DateTime',context!), 'submitted_date': JsonConverters.toJson(submitted_date,'DateTime',context!) }; getTypeName() => "CRMApplicationRefereeCreateRequest"; TypeContext? context = _ctx; } class CRMApplicationRequirementCreateRequest implements IConvertible { String? status; String? requirement_name; DateTime? requested_date; DateTime? received_date; CRMApplicationRequirementCreateRequest({this.status,this.requirement_name,this.requested_date,this.received_date}); CRMApplicationRequirementCreateRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { status = json['status']; requirement_name = json['requirement_name']; requested_date = JsonConverters.fromJson(json['requested_date'],'DateTime',context!); received_date = JsonConverters.fromJson(json['received_date'],'DateTime',context!); return this; } Map toJson() => { 'status': status, 'requirement_name': requirement_name, 'requested_date': JsonConverters.toJson(requested_date,'DateTime',context!), 'received_date': JsonConverters.toJson(received_date,'DateTime',context!) }; getTypeName() => "CRMApplicationRequirementCreateRequest"; TypeContext? context = _ctx; } // @Route("/DynamicsCRM/Education/Upsert/{regent_id}", "POST") class CRMEducationUpsertRequest implements IReturn, IConvertible, IPost { int? regent_id; int? import_id; int? institution_regent_id; String? application_guid; String? degree_status; String? degree_type; String? unofficial_institution_name; String? unofficial_degree_name; String? degree_name; String? degree_code; String? description; String? major; String? second_major; double? cumulative_gpa; bool? is_final; bool? is_regis_external_degree; int? start_year; int? end_year; int? month_graduated; int? year_graduated; DateTime? added_date; CRMEducationUpsertRequest({this.regent_id,this.import_id,this.institution_regent_id,this.application_guid,this.degree_status,this.degree_type,this.unofficial_institution_name,this.unofficial_degree_name,this.degree_name,this.degree_code,this.description,this.major,this.second_major,this.cumulative_gpa,this.is_final,this.is_regis_external_degree,this.start_year,this.end_year,this.month_graduated,this.year_graduated,this.added_date}); CRMEducationUpsertRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { regent_id = json['regent_id']; import_id = json['import_id']; institution_regent_id = json['institution_regent_id']; application_guid = json['application_guid']; degree_status = json['degree_status']; degree_type = json['degree_type']; unofficial_institution_name = json['unofficial_institution_name']; unofficial_degree_name = json['unofficial_degree_name']; degree_name = json['degree_name']; degree_code = json['degree_code']; description = json['description']; major = json['major']; second_major = json['second_major']; cumulative_gpa = JsonConverters.toDouble(json['cumulative_gpa']); is_final = json['is_final']; is_regis_external_degree = json['is_regis_external_degree']; start_year = json['start_year']; end_year = json['end_year']; month_graduated = json['month_graduated']; year_graduated = json['year_graduated']; added_date = JsonConverters.fromJson(json['added_date'],'DateTime',context!); return this; } Map toJson() => { 'regent_id': regent_id, 'import_id': import_id, 'institution_regent_id': institution_regent_id, 'application_guid': application_guid, 'degree_status': degree_status, 'degree_type': degree_type, 'unofficial_institution_name': unofficial_institution_name, 'unofficial_degree_name': unofficial_degree_name, 'degree_name': degree_name, 'degree_code': degree_code, 'description': description, 'major': major, 'second_major': second_major, 'cumulative_gpa': cumulative_gpa, 'is_final': is_final, 'is_regis_external_degree': is_regis_external_degree, 'start_year': start_year, 'end_year': end_year, 'month_graduated': month_graduated, 'year_graduated': year_graduated, 'added_date': JsonConverters.toJson(added_date,'DateTime',context!) }; createResponse() => ResponseStatus(); getResponseTypeName() => "ResponseStatus"; getTypeName() => "CRMEducationUpsertRequest"; TypeContext? context = _ctx; } class CRMApplicationCreateRequest implements IConvertible { int? regent_id; int? import_id; String? application_name; String? academic_program; String? start_term; String? location; String? addr1; String? addr2; String? city; String? state; String? country; String? code; String? former_name; String? citizenship; String? citizenship_other; String? permanent_resident; String? spouse_name; String? children; bool? native_english_speaker; String? native_language; String? birth_place; String? residency_status; DateTime? language_test_exemption_request_date; DateTime? language_test_exemption_decision_date; String? language_test_exemption_decision; String? language_test_comment; List? language_tests; List? references; List? requirements; List? education; String? church_attended; String? pastor_first_name; String? pastor_last_name; bool? has_impairment; String? impairment_description; bool? apply_for_financial_aid; String? financial_description; double? employment_years; String? employment_description; double? church_volunteer_years; String? church_volunteer_description; double? other_volunteer_years; String? other_volunteer_description; String? accomplishments_description; String? what_other_graduate_schools_are_you_apply; String? what_else_interests_you_about_regent; String? heard_about_regent_from_book; String? heard_about_regent_from_event; String? heard_about_regent_from_organization; String? heard_about_regent_from_person; String? heard_about_regent_from_website_pub; List? what_interests_you_about_regent; String? what_else_brought_you_to_regent; bool? start_via_distance_ed; bool? transfer_credits; String? applicant_comments; double? cumulative_undergraduate_gpa; double? cumulative_graduate_gpa; bool? conditional_admission; List? conditional_admission_reason; String? admission_notes; String? admission_decision_notes; String? withdrawn_reason; DateTime? submitted; DateTime? paid; DateTime? reviewed; DateTime? completed; DateTime? rejected; DateTime? admitted; DateTime? postponed; DateTime? withdrawn; DateTime? confirmed; DateTime? read_theological_position; String? current_status; String? image_base64; String? promo_code; DateTime? added_date; DateTime? last_contacted_date; String? owning_username; CRMApplicationCreateRequest({this.regent_id,this.import_id,this.application_name,this.academic_program,this.start_term,this.location,this.addr1,this.addr2,this.city,this.state,this.country,this.code,this.former_name,this.citizenship,this.citizenship_other,this.permanent_resident,this.spouse_name,this.children,this.native_english_speaker,this.native_language,this.birth_place,this.residency_status,this.language_test_exemption_request_date,this.language_test_exemption_decision_date,this.language_test_exemption_decision,this.language_test_comment,this.language_tests,this.references,this.requirements,this.education,this.church_attended,this.pastor_first_name,this.pastor_last_name,this.has_impairment,this.impairment_description,this.apply_for_financial_aid,this.financial_description,this.employment_years,this.employment_description,this.church_volunteer_years,this.church_volunteer_description,this.other_volunteer_years,this.other_volunteer_description,this.accomplishments_description,this.what_other_graduate_schools_are_you_apply,this.what_else_interests_you_about_regent,this.heard_about_regent_from_book,this.heard_about_regent_from_event,this.heard_about_regent_from_organization,this.heard_about_regent_from_person,this.heard_about_regent_from_website_pub,this.what_interests_you_about_regent,this.what_else_brought_you_to_regent,this.start_via_distance_ed,this.transfer_credits,this.applicant_comments,this.cumulative_undergraduate_gpa,this.cumulative_graduate_gpa,this.conditional_admission,this.conditional_admission_reason,this.admission_notes,this.admission_decision_notes,this.withdrawn_reason,this.submitted,this.paid,this.reviewed,this.completed,this.rejected,this.admitted,this.postponed,this.withdrawn,this.confirmed,this.read_theological_position,this.current_status,this.image_base64,this.promo_code,this.added_date,this.last_contacted_date,this.owning_username}); CRMApplicationCreateRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { regent_id = json['regent_id']; import_id = json['import_id']; application_name = json['application_name']; academic_program = json['academic_program']; start_term = json['start_term']; location = json['location']; addr1 = json['addr1']; addr2 = json['addr2']; city = json['city']; state = json['state']; country = json['country']; code = json['code']; former_name = json['former_name']; citizenship = json['citizenship']; citizenship_other = json['citizenship_other']; permanent_resident = json['permanent_resident']; spouse_name = json['spouse_name']; children = json['children']; native_english_speaker = json['native_english_speaker']; native_language = json['native_language']; birth_place = json['birth_place']; residency_status = json['residency_status']; language_test_exemption_request_date = JsonConverters.fromJson(json['language_test_exemption_request_date'],'DateTime',context!); language_test_exemption_decision_date = JsonConverters.fromJson(json['language_test_exemption_decision_date'],'DateTime',context!); language_test_exemption_decision = json['language_test_exemption_decision']; language_test_comment = json['language_test_comment']; language_tests = JsonConverters.fromJson(json['language_tests'],'List',context!); references = JsonConverters.fromJson(json['references'],'List',context!); requirements = JsonConverters.fromJson(json['requirements'],'List',context!); education = JsonConverters.fromJson(json['education'],'List',context!); church_attended = json['church_attended']; pastor_first_name = json['pastor_first_name']; pastor_last_name = json['pastor_last_name']; has_impairment = json['has_impairment']; impairment_description = json['impairment_description']; apply_for_financial_aid = json['apply_for_financial_aid']; financial_description = json['financial_description']; employment_years = JsonConverters.toDouble(json['employment_years']); employment_description = json['employment_description']; church_volunteer_years = JsonConverters.toDouble(json['church_volunteer_years']); church_volunteer_description = json['church_volunteer_description']; other_volunteer_years = JsonConverters.toDouble(json['other_volunteer_years']); other_volunteer_description = json['other_volunteer_description']; accomplishments_description = json['accomplishments_description']; what_other_graduate_schools_are_you_apply = json['what_other_graduate_schools_are_you_apply']; what_else_interests_you_about_regent = json['what_else_interests_you_about_regent']; heard_about_regent_from_book = json['heard_about_regent_from_book']; heard_about_regent_from_event = json['heard_about_regent_from_event']; heard_about_regent_from_organization = json['heard_about_regent_from_organization']; heard_about_regent_from_person = json['heard_about_regent_from_person']; heard_about_regent_from_website_pub = json['heard_about_regent_from_website_pub']; what_interests_you_about_regent = JsonConverters.fromJson(json['what_interests_you_about_regent'],'List',context!); what_else_brought_you_to_regent = json['what_else_brought_you_to_regent']; start_via_distance_ed = json['start_via_distance_ed']; transfer_credits = json['transfer_credits']; applicant_comments = json['applicant_comments']; cumulative_undergraduate_gpa = JsonConverters.toDouble(json['cumulative_undergraduate_gpa']); cumulative_graduate_gpa = JsonConverters.toDouble(json['cumulative_graduate_gpa']); conditional_admission = json['conditional_admission']; conditional_admission_reason = JsonConverters.fromJson(json['conditional_admission_reason'],'List',context!); admission_notes = json['admission_notes']; admission_decision_notes = json['admission_decision_notes']; withdrawn_reason = json['withdrawn_reason']; submitted = JsonConverters.fromJson(json['submitted'],'DateTime',context!); paid = JsonConverters.fromJson(json['paid'],'DateTime',context!); reviewed = JsonConverters.fromJson(json['reviewed'],'DateTime',context!); completed = JsonConverters.fromJson(json['completed'],'DateTime',context!); rejected = JsonConverters.fromJson(json['rejected'],'DateTime',context!); admitted = JsonConverters.fromJson(json['admitted'],'DateTime',context!); postponed = JsonConverters.fromJson(json['postponed'],'DateTime',context!); withdrawn = JsonConverters.fromJson(json['withdrawn'],'DateTime',context!); confirmed = JsonConverters.fromJson(json['confirmed'],'DateTime',context!); read_theological_position = JsonConverters.fromJson(json['read_theological_position'],'DateTime',context!); current_status = json['current_status']; image_base64 = json['image_base64']; promo_code = json['promo_code']; added_date = JsonConverters.fromJson(json['added_date'],'DateTime',context!); last_contacted_date = JsonConverters.fromJson(json['last_contacted_date'],'DateTime',context!); owning_username = json['owning_username']; return this; } Map toJson() => { 'regent_id': regent_id, 'import_id': import_id, 'application_name': application_name, 'academic_program': academic_program, 'start_term': start_term, 'location': location, 'addr1': addr1, 'addr2': addr2, 'city': city, 'state': state, 'country': country, 'code': code, 'former_name': former_name, 'citizenship': citizenship, 'citizenship_other': citizenship_other, 'permanent_resident': permanent_resident, 'spouse_name': spouse_name, 'children': children, 'native_english_speaker': native_english_speaker, 'native_language': native_language, 'birth_place': birth_place, 'residency_status': residency_status, 'language_test_exemption_request_date': JsonConverters.toJson(language_test_exemption_request_date,'DateTime',context!), 'language_test_exemption_decision_date': JsonConverters.toJson(language_test_exemption_decision_date,'DateTime',context!), 'language_test_exemption_decision': language_test_exemption_decision, 'language_test_comment': language_test_comment, 'language_tests': JsonConverters.toJson(language_tests,'List',context!), 'references': JsonConverters.toJson(references,'List',context!), 'requirements': JsonConverters.toJson(requirements,'List',context!), 'education': JsonConverters.toJson(education,'List',context!), 'church_attended': church_attended, 'pastor_first_name': pastor_first_name, 'pastor_last_name': pastor_last_name, 'has_impairment': has_impairment, 'impairment_description': impairment_description, 'apply_for_financial_aid': apply_for_financial_aid, 'financial_description': financial_description, 'employment_years': employment_years, 'employment_description': employment_description, 'church_volunteer_years': church_volunteer_years, 'church_volunteer_description': church_volunteer_description, 'other_volunteer_years': other_volunteer_years, 'other_volunteer_description': other_volunteer_description, 'accomplishments_description': accomplishments_description, 'what_other_graduate_schools_are_you_apply': what_other_graduate_schools_are_you_apply, 'what_else_interests_you_about_regent': what_else_interests_you_about_regent, 'heard_about_regent_from_book': heard_about_regent_from_book, 'heard_about_regent_from_event': heard_about_regent_from_event, 'heard_about_regent_from_organization': heard_about_regent_from_organization, 'heard_about_regent_from_person': heard_about_regent_from_person, 'heard_about_regent_from_website_pub': heard_about_regent_from_website_pub, 'what_interests_you_about_regent': JsonConverters.toJson(what_interests_you_about_regent,'List',context!), 'what_else_brought_you_to_regent': what_else_brought_you_to_regent, 'start_via_distance_ed': start_via_distance_ed, 'transfer_credits': transfer_credits, 'applicant_comments': applicant_comments, 'cumulative_undergraduate_gpa': cumulative_undergraduate_gpa, 'cumulative_graduate_gpa': cumulative_graduate_gpa, 'conditional_admission': conditional_admission, 'conditional_admission_reason': JsonConverters.toJson(conditional_admission_reason,'List',context!), 'admission_notes': admission_notes, 'admission_decision_notes': admission_decision_notes, 'withdrawn_reason': withdrawn_reason, 'submitted': JsonConverters.toJson(submitted,'DateTime',context!), 'paid': JsonConverters.toJson(paid,'DateTime',context!), 'reviewed': JsonConverters.toJson(reviewed,'DateTime',context!), 'completed': JsonConverters.toJson(completed,'DateTime',context!), 'rejected': JsonConverters.toJson(rejected,'DateTime',context!), 'admitted': JsonConverters.toJson(admitted,'DateTime',context!), 'postponed': JsonConverters.toJson(postponed,'DateTime',context!), 'withdrawn': JsonConverters.toJson(withdrawn,'DateTime',context!), 'confirmed': JsonConverters.toJson(confirmed,'DateTime',context!), 'read_theological_position': JsonConverters.toJson(read_theological_position,'DateTime',context!), 'current_status': current_status, 'image_base64': image_base64, 'promo_code': promo_code, 'added_date': JsonConverters.toJson(added_date,'DateTime',context!), 'last_contacted_date': JsonConverters.toJson(last_contacted_date,'DateTime',context!), 'owning_username': owning_username }; getTypeName() => "CRMApplicationCreateRequest"; TypeContext? context = _ctx; } // @Route("/DynamicsCRM/Application/Upsert/Multiple", "POST") class CRMApplicationUpsertMultipleRequest implements IReturn, IConvertible, IPost { List? applications; CRMApplicationUpsertMultipleRequest({this.applications}); CRMApplicationUpsertMultipleRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { applications = JsonConverters.fromJson(json['applications'],'List',context!); return this; } Map toJson() => { 'applications': JsonConverters.toJson(applications,'List',context!) }; createResponse() => ResponseStatus(); getResponseTypeName() => "ResponseStatus"; getTypeName() => "CRMApplicationUpsertMultipleRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'data.regent_college.edu', types: { 'CRMApplicationLanguageTestCreateRequest': TypeInfo(TypeOf.Class, create:() => CRMApplicationLanguageTestCreateRequest()), 'CRMApplicationRefereeCreateRequest': TypeInfo(TypeOf.Class, create:() => CRMApplicationRefereeCreateRequest()), 'CRMApplicationRequirementCreateRequest': TypeInfo(TypeOf.Class, create:() => CRMApplicationRequirementCreateRequest()), 'CRMEducationUpsertRequest': TypeInfo(TypeOf.Class, create:() => CRMEducationUpsertRequest()), 'CRMApplicationCreateRequest': TypeInfo(TypeOf.Class, create:() => CRMApplicationCreateRequest()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'List': TypeInfo(TypeOf.Class, create:() => []), 'List': TypeInfo(TypeOf.Class, create:() => []), 'List': TypeInfo(TypeOf.Class, create:() => []), 'CRMApplicationUpsertMultipleRequest': TypeInfo(TypeOf.Class, create:() => CRMApplicationUpsertMultipleRequest()), 'List': TypeInfo(TypeOf.Class, create:() => []), });