Currency.fromMap constructor

Currency.fromMap(
  1. Map<String, dynamic> map
)

Implementation

factory Currency.fromMap(Map<String, dynamic> map) {
  return Currency(
    symbol: map['symbol'].toString(),
    name: map['name'].toString(),
    symbolNative: map['symbolNative'].toString(),
    decimalDigits: map['decimalDigits'],
    rounding: map['rounding'].toDouble(),
    code: map['code'].toString(),
    namePlural: map['namePlural'].toString(),
  );
}