/* Options: Date: 2024-07-03 12:52:37 Version: 8.23 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://api.bokamera.se //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: EAccountingCheckAuthentication.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; abstract class ICompany { String? CompanyId; } class EaccountingToken implements IConvertible { String? AccessToken; String? RefreshToken; String? TokenType; int? ExpiresIn; DateTime? ExpiresAt; EaccountingToken({this.AccessToken,this.RefreshToken,this.TokenType,this.ExpiresIn,this.ExpiresAt}); EaccountingToken.fromJson(Map json) { fromMap(json); } fromMap(Map json) { AccessToken = json['AccessToken']; RefreshToken = json['RefreshToken']; TokenType = json['TokenType']; ExpiresIn = json['ExpiresIn']; ExpiresAt = JsonConverters.fromJson(json['ExpiresAt'],'DateTime',context!); return this; } Map toJson() => { 'AccessToken': AccessToken, 'RefreshToken': RefreshToken, 'TokenType': TokenType, 'ExpiresIn': ExpiresIn, 'ExpiresAt': JsonConverters.toJson(ExpiresAt,'DateTime',context!) }; getTypeName() => "EaccountingToken"; TypeContext? context = _ctx; } // @Route("/eaccounting/check", "GET") class EAccountingCheckAuthentication implements IReturn, ICompany, IConvertible, IGet { String? CompanyId; EAccountingCheckAuthentication({this.CompanyId}); EAccountingCheckAuthentication.fromJson(Map json) { fromMap(json); } fromMap(Map json) { CompanyId = json['CompanyId']; return this; } Map toJson() => { 'CompanyId': CompanyId }; createResponse() => EaccountingToken(); getResponseTypeName() => "EaccountingToken"; getTypeName() => "EAccountingCheckAuthentication"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'api.bokamera.se', types: { 'ICompany': TypeInfo(TypeOf.Interface), 'EaccountingToken': TypeInfo(TypeOf.Class, create:() => EaccountingToken()), 'EAccountingCheckAuthentication': TypeInfo(TypeOf.Class, create:() => EAccountingCheckAuthentication()), });