factory Coin.fromMap(Map<String, dynamic> map) => Coin( Amount.fromMap(map["amount"]), CoinIdentifier.fromMap(map["coin_identifier"]));