/* Options: Date: 2024-11-21 12:14:28 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: EaccountingUserToken.* //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/token", "GET") class EaccountingUserToken implements IReturn, ICompany, IConvertible, IGet { String? CompanyId; EaccountingUserToken({this.CompanyId}); EaccountingUserToken.fromJson(Map json) { fromMap(json); } fromMap(Map json) { CompanyId = json['CompanyId']; return this; } Map toJson() => { 'CompanyId': CompanyId }; createResponse() => EaccountingToken(); getResponseTypeName() => "EaccountingToken"; getTypeName() => "EaccountingUserToken"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'api.bokamera.se', types: { 'ICompany': TypeInfo(TypeOf.Interface), 'EaccountingToken': TypeInfo(TypeOf.Class, create:() => EaccountingToken()), 'EaccountingUserToken': TypeInfo(TypeOf.Class, create:() => EaccountingUserToken()), });