/* Options: Date: 2024-11-21 11:28:14 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: GetGoogleCalendarToken.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; abstract class ICompany { String? CompanyId; } class GoogleCalendarTokenResponse implements IConvertible { String? Result; GoogleCalendarTokenResponse({this.Result}); GoogleCalendarTokenResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Result = json['Result']; return this; } Map toJson() => { 'Result': Result }; getTypeName() => "GoogleCalendarTokenResponse"; TypeContext? context = _ctx; } // @Route("/sync/googlecalendar/", "GET") // @ApiResponse(Description="You were unauthorized to call this service", StatusCode=401) // @ValidateRequest(Validator="IsAuthenticated") class GetGoogleCalendarToken implements IReturn, ICompany, IConvertible, IGet { /** * The company id, if empty will use the company id for the user you are logged in with. */ // @ApiMember(Description="The company id, if empty will use the company id for the user you are logged in with.") String? CompanyId; /** * Query for specific Resources, default is all resources */ // @ApiMember(Description="Query for specific Resources, default is all resources", ParameterType="query") List? ResourceIds; GetGoogleCalendarToken({this.CompanyId,this.ResourceIds}); GetGoogleCalendarToken.fromJson(Map json) { fromMap(json); } fromMap(Map json) { CompanyId = json['CompanyId']; ResourceIds = JsonConverters.fromJson(json['ResourceIds'],'List',context!); return this; } Map toJson() => { 'CompanyId': CompanyId, 'ResourceIds': JsonConverters.toJson(ResourceIds,'List',context!) }; createResponse() => GoogleCalendarTokenResponse(); getResponseTypeName() => "GoogleCalendarTokenResponse"; getTypeName() => "GetGoogleCalendarToken"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'api.bokamera.se', types: { 'ICompany': TypeInfo(TypeOf.Interface), 'GoogleCalendarTokenResponse': TypeInfo(TypeOf.Class, create:() => GoogleCalendarTokenResponse()), 'GetGoogleCalendarToken': TypeInfo(TypeOf.Class, create:() => GetGoogleCalendarToken()), });