/* Options: Date: 2024-12-29 02:43:40 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: PersonAuthRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart,dart:typed_data */ import 'package:servicestack/servicestack.dart'; import 'dart:typed_data'; class PersonAuthResponse implements IConvertible { ResponseStatus? responseStatus; int? regent_id; String? uuid; String? first_name; String? last_name; String? preferred_name; List? roles; PersonAuthResponse({this.responseStatus,this.regent_id,this.uuid,this.first_name,this.last_name,this.preferred_name,this.roles}); PersonAuthResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { responseStatus = JsonConverters.fromJson(json['responseStatus'],'ResponseStatus',context!); regent_id = json['regent_id']; uuid = json['uuid']; first_name = json['first_name']; last_name = json['last_name']; preferred_name = json['preferred_name']; roles = JsonConverters.fromJson(json['roles'],'List',context!); return this; } Map toJson() => { 'responseStatus': JsonConverters.toJson(responseStatus,'ResponseStatus',context!), 'regent_id': regent_id, 'uuid': uuid, 'first_name': first_name, 'last_name': last_name, 'preferred_name': preferred_name, 'roles': JsonConverters.toJson(roles,'List',context!) }; getTypeName() => "PersonAuthResponse"; TypeContext? context = _ctx; } // @Route("/person/{uuid}/auth", "POST") class PersonAuthRequest implements IReturn, IConvertible, IPost { String? uuid; PersonAuthRequest({this.uuid}); PersonAuthRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { uuid = json['uuid']; return this; } Map toJson() => { 'uuid': uuid }; createResponse() => PersonAuthResponse(); getResponseTypeName() => "PersonAuthResponse"; getTypeName() => "PersonAuthRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'data.regent_college.edu', types: { 'PersonAuthResponse': TypeInfo(TypeOf.Class, create:() => PersonAuthResponse()), 'PersonAuthRequest': TypeInfo(TypeOf.Class, create:() => PersonAuthRequest()), });