cake_wallet/lib/monero/account.dart

17 lines
403 B
Dart
Raw Normal View History

2020-01-04 19:31:52 +00:00
import 'package:cw_monero/structs/account_row.dart';
class Account {
Account({this.id, this.label});
Account.fromMap(Map map)
2020-01-08 12:26:34 +00:00
: this.id = map['id'] == null ? 0 : int.parse(map['id'] as String),
this.label = (map['label'] ?? '') as String;
2020-01-04 19:31:52 +00:00
Account.fromRow(AccountRow row)
: this.id = row.getId(),
this.label = row.getLabel();
2020-01-08 12:26:34 +00:00
final int id;
final String label;
2020-01-04 19:31:52 +00:00
}