/* Options: Date: 2024-10-06 10:27:20 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: PersonRestrictionsRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart,dart:typed_data */ import 'package:servicestack/servicestack.dart'; import 'dart:typed_data'; class PersonRestrictionResponse implements IConvertible { int? id; String? restriction_code; String? restriction_description; DateTime? start_date; DateTime? end_date; PersonRestrictionResponse({this.id,this.restriction_code,this.restriction_description,this.start_date,this.end_date}); PersonRestrictionResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { id = json['id']; restriction_code = json['restriction_code']; restriction_description = json['restriction_description']; start_date = JsonConverters.fromJson(json['start_date'],'DateTime',context!); end_date = JsonConverters.fromJson(json['end_date'],'DateTime',context!); return this; } Map toJson() => { 'id': id, 'restriction_code': restriction_code, 'restriction_description': restriction_description, 'start_date': JsonConverters.toJson(start_date,'DateTime',context!), 'end_date': JsonConverters.toJson(end_date,'DateTime',context!) }; getTypeName() => "PersonRestrictionResponse"; TypeContext? context = _ctx; } class RestrictionResponse implements IConvertible { int? id; String? restriction_code; String? restriction_description; bool? is_active; RestrictionResponse({this.id,this.restriction_code,this.restriction_description,this.is_active}); RestrictionResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { id = json['id']; restriction_code = json['restriction_code']; restriction_description = json['restriction_description']; is_active = json['is_active']; return this; } Map toJson() => { 'id': id, 'restriction_code': restriction_code, 'restriction_description': restriction_description, 'is_active': is_active }; getTypeName() => "RestrictionResponse"; TypeContext? context = _ctx; } class PersonRestrictionsResponse implements IConvertible { ResponseStatus? responseStatus; int? regent_id; String? uuid; List? restrictions; List? valid_restrictions; PersonRestrictionsResponse({this.responseStatus,this.regent_id,this.uuid,this.restrictions,this.valid_restrictions}); PersonRestrictionsResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { responseStatus = JsonConverters.fromJson(json['responseStatus'],'ResponseStatus',context!); regent_id = json['regent_id']; uuid = json['uuid']; restrictions = JsonConverters.fromJson(json['restrictions'],'List',context!); valid_restrictions = JsonConverters.fromJson(json['valid_restrictions'],'List',context!); return this; } Map toJson() => { 'responseStatus': JsonConverters.toJson(responseStatus,'ResponseStatus',context!), 'regent_id': regent_id, 'uuid': uuid, 'restrictions': JsonConverters.toJson(restrictions,'List',context!), 'valid_restrictions': JsonConverters.toJson(valid_restrictions,'List',context!) }; getTypeName() => "PersonRestrictionsResponse"; TypeContext? context = _ctx; } // @Route("/Person/{uuid}/Restrictions", "POST") class PersonRestrictionsRequest implements IReturn, IConvertible, IPost { String? uuid; PersonRestrictionsRequest({this.uuid}); PersonRestrictionsRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { uuid = json['uuid']; return this; } Map toJson() => { 'uuid': uuid }; createResponse() => PersonRestrictionsResponse(); getResponseTypeName() => "PersonRestrictionsResponse"; getTypeName() => "PersonRestrictionsRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'data.regent_college.edu', types: { 'PersonRestrictionResponse': TypeInfo(TypeOf.Class, create:() => PersonRestrictionResponse()), 'RestrictionResponse': TypeInfo(TypeOf.Class, create:() => RestrictionResponse()), 'PersonRestrictionsResponse': TypeInfo(TypeOf.Class, create:() => PersonRestrictionsResponse()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'List': TypeInfo(TypeOf.Class, create:() => []), 'PersonRestrictionsRequest': TypeInfo(TypeOf.Class, create:() => PersonRestrictionsRequest()), });