/* Options: Date: 2024-12-29 04:06:04 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: ConcentrationsRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart,dart:typed_data */ import 'package:servicestack/servicestack.dart'; import 'dart:typed_data'; 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 ConcentrationsResponse implements IConvertible { ResponseStatus? responseStatus; List? concentrations; ConcentrationsResponse({this.responseStatus,this.concentrations}); ConcentrationsResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { responseStatus = JsonConverters.fromJson(json['responseStatus'],'ResponseStatus',context!); concentrations = JsonConverters.fromJson(json['concentrations'],'List',context!); return this; } Map toJson() => { 'responseStatus': JsonConverters.toJson(responseStatus,'ResponseStatus',context!), 'concentrations': JsonConverters.toJson(concentrations,'List',context!) }; getTypeName() => "ConcentrationsResponse"; TypeContext? context = _ctx; } // @Route("/Concentrations", "POST") class ConcentrationsRequest implements IReturn, IConvertible, IPost { ConcentrationsRequest(); ConcentrationsRequest.fromJson(Map json) : super(); fromMap(Map json) { return this; } Map toJson() => {}; createResponse() => ConcentrationsResponse(); getResponseTypeName() => "ConcentrationsResponse"; getTypeName() => "ConcentrationsRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'data.regent_college.edu', types: { 'ConcentrationResponse': TypeInfo(TypeOf.Class, create:() => ConcentrationResponse()), 'ConcentrationsResponse': TypeInfo(TypeOf.Class, create:() => ConcentrationsResponse()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'ConcentrationsRequest': TypeInfo(TypeOf.Class, create:() => ConcentrationsRequest()), });