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 json) => _$SnKeyPairFromJson(json); }