Add manual auth screen
This commit is contained in:
16
moneymgr_mobile/lib/services/api/api_token.dart
Normal file
16
moneymgr_mobile/lib/services/api/api_token.dart
Normal file
@ -0,0 +1,16 @@
|
||||
import 'package:freezed_annotation/freezed_annotation.dart';
|
||||
|
||||
part 'api_token.freezed.dart';
|
||||
part 'api_token.g.dart';
|
||||
|
||||
@freezed
|
||||
abstract class ApiToken with _$ApiToken {
|
||||
const factory ApiToken({
|
||||
required String apiUrl,
|
||||
required int tokenId,
|
||||
required String tokenValue
|
||||
}) = _ApiToken;
|
||||
|
||||
factory ApiToken.fromJson(Map<String, dynamic> json) =>
|
||||
_$ApiTokenFromJson(json);
|
||||
}
|
Reference in New Issue
Block a user