mirror of
https://github.com/haorendashu/nowser.git
synced 2025-12-18 02:04:18 +01:00
simple support for nip07
This commit is contained in:
37
lib/data/zap_log.dart
Normal file
37
lib/data/zap_log.dart
Normal file
@@ -0,0 +1,37 @@
|
||||
class ZapLog {
|
||||
int? id;
|
||||
|
||||
int? appId;
|
||||
|
||||
int? zapType;
|
||||
|
||||
int? num;
|
||||
|
||||
int? createdAt;
|
||||
|
||||
ZapLog({
|
||||
this.id,
|
||||
this.appId,
|
||||
this.zapType,
|
||||
this.num,
|
||||
this.createdAt,
|
||||
});
|
||||
|
||||
ZapLog.fromJson(Map<String, dynamic> json) {
|
||||
id = json['id'];
|
||||
appId = json['app_id'];
|
||||
zapType = json['zap_type'];
|
||||
num = json['num'];
|
||||
createdAt = json['created_at'];
|
||||
}
|
||||
|
||||
Map<String, dynamic> toJson() {
|
||||
final Map<String, dynamic> data = new Map<String, dynamic>();
|
||||
data['id'] = this.id;
|
||||
data['app_id'] = this.appId;
|
||||
data['zap_type'] = this.zapType;
|
||||
data['num'] = this.num;
|
||||
data['created_at'] = this.createdAt;
|
||||
return data;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user