/* Options: Date: 2024-12-29 02:50: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: GradesRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart,dart:typed_data */ import 'package:servicestack/servicestack.dart'; import 'dart:typed_data'; class GradeResponse implements IConvertible { ResponseStatus? responseStatus; int? id; String? grade_code; String? grade_name; double? grade_points; bool? gpa_credit; bool? completed_credit; GradeResponse({this.responseStatus,this.id,this.grade_code,this.grade_name,this.grade_points,this.gpa_credit,this.completed_credit}); GradeResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { responseStatus = JsonConverters.fromJson(json['responseStatus'],'ResponseStatus',context!); id = json['id']; grade_code = json['grade_code']; grade_name = json['grade_name']; grade_points = JsonConverters.toDouble(json['grade_points']); gpa_credit = json['gpa_credit']; completed_credit = json['completed_credit']; return this; } Map toJson() => { 'responseStatus': JsonConverters.toJson(responseStatus,'ResponseStatus',context!), 'id': id, 'grade_code': grade_code, 'grade_name': grade_name, 'grade_points': grade_points, 'gpa_credit': gpa_credit, 'completed_credit': completed_credit }; getTypeName() => "GradeResponse"; TypeContext? context = _ctx; } class GradesResponse implements IConvertible { ResponseStatus? responseStatus; List? grades; GradesResponse({this.responseStatus,this.grades}); GradesResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { responseStatus = JsonConverters.fromJson(json['responseStatus'],'ResponseStatus',context!); grades = JsonConverters.fromJson(json['grades'],'List',context!); return this; } Map toJson() => { 'responseStatus': JsonConverters.toJson(responseStatus,'ResponseStatus',context!), 'grades': JsonConverters.toJson(grades,'List',context!) }; getTypeName() => "GradesResponse"; TypeContext? context = _ctx; } // @Route("/Grades", "POST") class GradesRequest implements IReturn, IConvertible, IPost { GradesRequest(); GradesRequest.fromJson(Map json) : super(); fromMap(Map json) { return this; } Map toJson() => {}; createResponse() => GradesResponse(); getResponseTypeName() => "GradesResponse"; getTypeName() => "GradesRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'data.regent_college.edu', types: { 'GradeResponse': TypeInfo(TypeOf.Class, create:() => GradeResponse()), 'GradesResponse': TypeInfo(TypeOf.Class, create:() => GradesResponse()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'GradesRequest': TypeInfo(TypeOf.Class, create:() => GradesRequest()), });