Account.fromCBJson constructor
Creates an Account from a Coinbase JSON object.
Implementation
Account.fromCBJson(Map<String, dynamic> json)
: uuid = json['uuid'],
name = json['name'],
currency = json['currency'],
availableBalance =
AvailableBalance.fromCBJson(json['available_balance']).value,
isDefault = json['default'],
active = json['active'],
createdAt = DateTime.parse(json['created_at']),
updatedAt = DateTime.parse(json['updated_at']),
deletedAt = (json['deleted_at'] != null)
? DateTime.parse(json['deleted_at'])
: null,
type = json['type'],
ready = json['ready'],
holdValue = Hold.fromCBJson(json['hold']).value;