🗃️ Local keypair db
This commit is contained in:
16
lib/types/keypair.dart
Normal file
16
lib/types/keypair.dart
Normal file
@ -0,0 +1,16 @@
|
||||
import 'package:freezed_annotation/freezed_annotation.dart';
|
||||
|
||||
part 'keypair.freezed.dart';
|
||||
part 'keypair.g.dart';
|
||||
|
||||
@freezed
|
||||
abstract class SnKeyPair with _$SnKeyPair {
|
||||
const factory SnKeyPair({
|
||||
required String id,
|
||||
required int accountId,
|
||||
required String publicKey,
|
||||
String? privateKey,
|
||||
}) = _SnKeyPair;
|
||||
|
||||
factory SnKeyPair.fromJson(Map<String, Object?> json) => _$SnKeyPairFromJson(json);
|
||||
}
|
Reference in New Issue
Block a user