/* Options: Date: 2026-04-15 21:22:14 Version: 8.60 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: http://api.booklinker.com //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: LoginLinkRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; // @DataContract class AuthLinkBaseRequest implements IConvertible { // @DataMember(Name="email") // @ApiMember(IsRequired=true, Name="email") String? email; AuthLinkBaseRequest({this.email}); AuthLinkBaseRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { email = json['email']; return this; } Map toJson() => { 'email': email }; getTypeName() => "AuthLinkBaseRequest"; TypeContext? context = _ctx; } // @DataContract class AuthLinkResponse implements IConvertible { // @DataMember(Name="success") bool? success; // @DataMember(Name="responseStatus") ResponseStatus? responseStatus; AuthLinkResponse({this.success,this.responseStatus}); AuthLinkResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { success = json['success']; responseStatus = JsonConverters.fromJson(json['responseStatus'],'ResponseStatus',context!); return this; } Map toJson() => { 'success': success, 'responseStatus': JsonConverters.toJson(responseStatus,'ResponseStatus',context!) }; getTypeName() => "AuthLinkResponse"; TypeContext? context = _ctx; } // @Route("/v1/login/link", "POST") class LoginLinkRequest extends AuthLinkBaseRequest implements IReturn, IConvertible, IPost { LoginLinkRequest(); LoginLinkRequest.fromJson(Map json) : super.fromJson(json); fromMap(Map json) { super.fromMap(json); return this; } Map toJson() => super.toJson(); createResponse() => AuthLinkResponse(); getResponseTypeName() => "AuthLinkResponse"; getTypeName() => "LoginLinkRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'api.booklinker.com', types: { 'AuthLinkBaseRequest': TypeInfo(TypeOf.Class, create:() => AuthLinkBaseRequest()), 'AuthLinkResponse': TypeInfo(TypeOf.Class, create:() => AuthLinkResponse()), 'LoginLinkRequest': TypeInfo(TypeOf.Class, create:() => LoginLinkRequest()), });