/* Options: Date: 2024-12-29 03:42:49 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: ProgramsRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart,dart:typed_data */ import 'package:servicestack/servicestack.dart'; import 'dart:typed_data'; class ProgramResponse implements IConvertible { ResponseStatus? responseStatus; int? id; String? program_code; String? program_pretty_code; String? program_long_name; String? available_concentrations; bool? is_active; DateTime? timestamp; ProgramResponse({this.responseStatus,this.id,this.program_code,this.program_pretty_code,this.program_long_name,this.available_concentrations,this.is_active,this.timestamp}); ProgramResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { responseStatus = JsonConverters.fromJson(json['responseStatus'],'ResponseStatus',context!); id = json['id']; program_code = json['program_code']; program_pretty_code = json['program_pretty_code']; program_long_name = json['program_long_name']; available_concentrations = json['available_concentrations']; is_active = json['is_active']; timestamp = JsonConverters.fromJson(json['timestamp'],'DateTime',context!); return this; } Map toJson() => { 'responseStatus': JsonConverters.toJson(responseStatus,'ResponseStatus',context!), 'id': id, 'program_code': program_code, 'program_pretty_code': program_pretty_code, 'program_long_name': program_long_name, 'available_concentrations': available_concentrations, 'is_active': is_active, 'timestamp': JsonConverters.toJson(timestamp,'DateTime',context!) }; getTypeName() => "ProgramResponse"; TypeContext? context = _ctx; } class ProgramsResponse implements IConvertible { ResponseStatus? responseStatus; List? programs; ProgramsResponse({this.responseStatus,this.programs}); ProgramsResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { responseStatus = JsonConverters.fromJson(json['responseStatus'],'ResponseStatus',context!); programs = JsonConverters.fromJson(json['programs'],'List',context!); return this; } Map toJson() => { 'responseStatus': JsonConverters.toJson(responseStatus,'ResponseStatus',context!), 'programs': JsonConverters.toJson(programs,'List',context!) }; getTypeName() => "ProgramsResponse"; TypeContext? context = _ctx; } // @Route("/Programs", "POST") class ProgramsRequest implements IReturn, IConvertible, IPost { ProgramsRequest(); ProgramsRequest.fromJson(Map json) : super(); fromMap(Map json) { return this; } Map toJson() => {}; createResponse() => ProgramsResponse(); getResponseTypeName() => "ProgramsResponse"; getTypeName() => "ProgramsRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'data.regent_college.edu', types: { 'ProgramResponse': TypeInfo(TypeOf.Class, create:() => ProgramResponse()), 'ProgramsResponse': TypeInfo(TypeOf.Class, create:() => ProgramsResponse()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'ProgramsRequest': TypeInfo(TypeOf.Class, create:() => ProgramsRequest()), });