Currency.from constructor Null safety

Currency.from(
  1. {required Map<String, dynamic> json}
)

Implementation

Currency.from({required Map<String, dynamic> json})
    : code = json['code'],
      name = json['name'],
      symbol = json['symbol'],
      number = json['number'],
      flag = json['flag'],
      decimalDigits = json['decimal_digits'],
      namePlural = json['name_plural'],
      symbolOnLeft = json['symbol_on_left'],
      decimalSeparator = json['decimal_separator'],
      thousandsSeparator = json['thousands_separator'],
      spaceBetweenAmountAndSymbol = json['space_between_amount_and_symbol'];