mirror of
https://github.com/haorendashu/nowser.git
synced 2025-12-17 09:54:19 +01:00
49 lines
1.2 KiB
Dart
49 lines
1.2 KiB
Dart
class RemoteSigningInfo {
|
|
int? id;
|
|
int? appId;
|
|
String? localPubkey;
|
|
String? remotePubkey;
|
|
String? remoteSignerKey;
|
|
String? relays;
|
|
String? secret;
|
|
int? createdAt;
|
|
int? updatedAt;
|
|
|
|
RemoteSigningInfo(
|
|
{this.id,
|
|
this.appId,
|
|
this.localPubkey,
|
|
this.remotePubkey,
|
|
this.remoteSignerKey,
|
|
this.relays,
|
|
this.secret,
|
|
this.createdAt,
|
|
this.updatedAt});
|
|
|
|
RemoteSigningInfo.fromJson(Map<String, dynamic> json) {
|
|
id = json['id'];
|
|
appId = json['app_id'];
|
|
localPubkey = json['local_pubkey'];
|
|
remotePubkey = json['remote_pubkey'];
|
|
remoteSignerKey = json['remote_signer_key'];
|
|
relays = json['relays'];
|
|
secret = json['secret'];
|
|
createdAt = json['created_at'];
|
|
updatedAt = json['updated_at'];
|
|
}
|
|
|
|
Map<String, dynamic> toJson() {
|
|
final Map<String, dynamic> data = new Map<String, dynamic>();
|
|
data['id'] = this.id;
|
|
data['app_id'] = this.appId;
|
|
data['local_pubkey'] = this.localPubkey;
|
|
data['remote_pubkey'] = this.remotePubkey;
|
|
data['remote_signer_key'] = this.remoteSignerKey;
|
|
data['relays'] = this.relays;
|
|
data['secret'] = this.secret;
|
|
data['created_at'] = this.createdAt;
|
|
data['updated_at'] = this.updatedAt;
|
|
return data;
|
|
}
|
|
}
|