/* Options: Date: 2024-10-06 10:31:05 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: TermStatementRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart,dart:typed_data */ import 'package:servicestack/servicestack.dart'; import 'dart:typed_data'; class TermStatementRegistrationResponse implements IConvertible { String? course_name; String? title; String? section_code; double? amount; bool? is_audit; String? meeting_days; String? times; String? room; String? instructor; String? status; double? cost; DateTime? start_date; DateTime? end_date; TermStatementRegistrationResponse({this.course_name,this.title,this.section_code,this.amount,this.is_audit,this.meeting_days,this.times,this.room,this.instructor,this.status,this.cost,this.start_date,this.end_date}); TermStatementRegistrationResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { course_name = json['course_name']; title = json['title']; section_code = json['section_code']; amount = JsonConverters.toDouble(json['amount']); is_audit = json['is_audit']; meeting_days = json['meeting_days']; times = json['times']; room = json['room']; instructor = json['instructor']; status = json['status']; cost = JsonConverters.toDouble(json['cost']); start_date = JsonConverters.fromJson(json['start_date'],'DateTime',context!); end_date = JsonConverters.fromJson(json['end_date'],'DateTime',context!); return this; } Map toJson() => { 'course_name': course_name, 'title': title, 'section_code': section_code, 'amount': amount, 'is_audit': is_audit, 'meeting_days': meeting_days, 'times': times, 'room': room, 'instructor': instructor, 'status': status, 'cost': cost, 'start_date': JsonConverters.toJson(start_date,'DateTime',context!), 'end_date': JsonConverters.toJson(end_date,'DateTime',context!) }; getTypeName() => "TermStatementRegistrationResponse"; TypeContext? context = _ctx; } class TermStatementChargesResponse implements IConvertible { DateTime? date; String? code; String? description; bool? is_financial_aid; double? charge; TermStatementChargesResponse({this.date,this.code,this.description,this.is_financial_aid,this.charge}); TermStatementChargesResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { date = JsonConverters.fromJson(json['date'],'DateTime',context!); code = json['code']; description = json['description']; is_financial_aid = json['is_financial_aid']; charge = JsonConverters.toDouble(json['charge']); return this; } Map toJson() => { 'date': JsonConverters.toJson(date,'DateTime',context!), 'code': code, 'description': description, 'is_financial_aid': is_financial_aid, 'charge': charge }; getTypeName() => "TermStatementChargesResponse"; TypeContext? context = _ctx; } class TermStatementResponse implements IConvertible { ResponseStatus? responseStatus; int? regent_id; String? uuid; String? name; String? addr1; String? addr2; String? city; String? state; String? country; String? code; String? reporting_term; DateTime? reporting_term_start_date; DateTime? reporting_term_end_date; String? academic_program; double? total_term_payments; double? total_term_charges; double? total_term_taxes; List? registrations; List? charges; TermStatementResponse({this.responseStatus,this.regent_id,this.uuid,this.name,this.addr1,this.addr2,this.city,this.state,this.country,this.code,this.reporting_term,this.reporting_term_start_date,this.reporting_term_end_date,this.academic_program,this.total_term_payments,this.total_term_charges,this.total_term_taxes,this.registrations,this.charges}); TermStatementResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { responseStatus = JsonConverters.fromJson(json['responseStatus'],'ResponseStatus',context!); regent_id = json['regent_id']; uuid = json['uuid']; name = json['name']; addr1 = json['addr1']; addr2 = json['addr2']; city = json['city']; state = json['state']; country = json['country']; code = json['code']; reporting_term = json['reporting_term']; reporting_term_start_date = JsonConverters.fromJson(json['reporting_term_start_date'],'DateTime',context!); reporting_term_end_date = JsonConverters.fromJson(json['reporting_term_end_date'],'DateTime',context!); academic_program = json['academic_program']; total_term_payments = JsonConverters.toDouble(json['total_term_payments']); total_term_charges = JsonConverters.toDouble(json['total_term_charges']); total_term_taxes = JsonConverters.toDouble(json['total_term_taxes']); registrations = JsonConverters.fromJson(json['registrations'],'List',context!); charges = JsonConverters.fromJson(json['charges'],'List',context!); return this; } Map toJson() => { 'responseStatus': JsonConverters.toJson(responseStatus,'ResponseStatus',context!), 'regent_id': regent_id, 'uuid': uuid, 'name': name, 'addr1': addr1, 'addr2': addr2, 'city': city, 'state': state, 'country': country, 'code': code, 'reporting_term': reporting_term, 'reporting_term_start_date': JsonConverters.toJson(reporting_term_start_date,'DateTime',context!), 'reporting_term_end_date': JsonConverters.toJson(reporting_term_end_date,'DateTime',context!), 'academic_program': academic_program, 'total_term_payments': total_term_payments, 'total_term_charges': total_term_charges, 'total_term_taxes': total_term_taxes, 'registrations': JsonConverters.toJson(registrations,'List',context!), 'charges': JsonConverters.toJson(charges,'List',context!) }; getTypeName() => "TermStatementResponse"; TypeContext? context = _ctx; } // @Route("/TermStatements/{uuid}/{reporting_term}", "POST") class TermStatementRequest implements IReturn, IConvertible, IPost { String? uuid; String? reporting_term; String? authorizing_uuid; TermStatementRequest({this.uuid,this.reporting_term,this.authorizing_uuid}); TermStatementRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { uuid = json['uuid']; reporting_term = json['reporting_term']; authorizing_uuid = json['authorizing_uuid']; return this; } Map toJson() => { 'uuid': uuid, 'reporting_term': reporting_term, 'authorizing_uuid': authorizing_uuid }; createResponse() => TermStatementResponse(); getResponseTypeName() => "TermStatementResponse"; getTypeName() => "TermStatementRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'data.regent_college.edu', types: { 'TermStatementRegistrationResponse': TypeInfo(TypeOf.Class, create:() => TermStatementRegistrationResponse()), 'TermStatementChargesResponse': TypeInfo(TypeOf.Class, create:() => TermStatementChargesResponse()), 'TermStatementResponse': TypeInfo(TypeOf.Class, create:() => TermStatementResponse()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'List': TypeInfo(TypeOf.Class, create:() => []), 'TermStatementRequest': TypeInfo(TypeOf.Class, create:() => TermStatementRequest()), });