toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() => {
      "code": code,
      "name": name,
      "states": List<dynamic>.from(states!.map((x) => x.toJson())),
      "currency_code": currencyCode,
      "currency_pos": currencyPos == null
          ? null
          : currencyPosValues.reverse![currencyPos!],
      "decimal_sep":
          decimalSep == null ? null : sepValues.reverse![decimalSep!],
      "dimension_unit": dimensionUnit == null
          ? null
          : dimensionUnitValues.reverse![dimensionUnit!],
      "num_decimals": numDecimals,
      "thousand_sep":
          thousandSep == null ? null : sepValues.reverse![thousandSep!],
      "weight_unit":
          weightUnit == null ? null : weightUnitValues.reverse![weightUnit!],
    };