factory Currency.fromMap(Map<String, dynamic> map) { return Currency(map["symbol"], map["decimals"], map["metadata"]); }