/* Options: Date: 2024-10-06 10:33:47 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: FacultyRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart,dart:typed_data */ import 'package:servicestack/servicestack.dart'; import 'dart:typed_data'; class FacultyResponse implements IConvertible { ResponseStatus? responseStatus; int? id; String? first_name; String? last_name; FacultyResponse({this.responseStatus,this.id,this.first_name,this.last_name}); FacultyResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { responseStatus = JsonConverters.fromJson(json['responseStatus'],'ResponseStatus',context!); id = json['id']; first_name = json['first_name']; last_name = json['last_name']; return this; } Map toJson() => { 'responseStatus': JsonConverters.toJson(responseStatus,'ResponseStatus',context!), 'id': id, 'first_name': first_name, 'last_name': last_name }; getTypeName() => "FacultyResponse"; TypeContext? context = _ctx; } // @Route("/Faculty/{id}", "POST") class FacultyRequest implements IReturn, IConvertible, IPost { int? id; FacultyRequest({this.id}); FacultyRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { id = json['id']; return this; } Map toJson() => { 'id': id }; createResponse() => FacultyResponse(); getResponseTypeName() => "FacultyResponse"; getTypeName() => "FacultyRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'data.regent_college.edu', types: { 'FacultyResponse': TypeInfo(TypeOf.Class, create:() => FacultyResponse()), 'FacultyRequest': TypeInfo(TypeOf.Class, create:() => FacultyRequest()), });