import 'package:freezed_annotation/freezed_annotation.dart'; part 'csrf_token.freezed.dart'; part 'csrf_token.g.dart'; @freezed class CSRFTokenInfo with _$CSRFTokenInfo { const factory CSRFTokenInfo({ String? csrftoken, String? logintoken, String? createaccounttoken, String? patroltoken, String? rollbacktoken, String? userrightstoken, String? watchtoken, }) = _CSRFTokenInfo; factory CSRFTokenInfo.fromJson(Map json) => _$CSRFTokenInfoFromJson(json); } @freezed class CSRFTokenResponse with _$CSRFTokenResponse { const factory CSRFTokenResponse({required CSRFTokenInfo tokens}) = _CSRFTokenInfoResponse; factory CSRFTokenResponse.fromJson(Map json) => _$CSRFTokenResponseFromJson(json); }