DateSymbols.deserializeFromMap constructor

DateSymbols.deserializeFromMap(Map map)

Implementation

DateSymbols.deserializeFromMap(Map map) {
  List<String> _getStringList(String name) =>
      new List<String>.from(map[name]);
  NAME = map["NAME"];
  ERAS = _getStringList("ERAS");
  ERANAMES = _getStringList("ERANAMES");
  NARROWMONTHS = _getStringList("NARROWMONTHS");
  STANDALONENARROWMONTHS = _getStringList("STANDALONENARROWMONTHS");
  MONTHS = _getStringList("MONTHS");
  STANDALONEMONTHS = _getStringList("STANDALONEMONTHS");
  SHORTMONTHS = _getStringList("SHORTMONTHS");
  STANDALONESHORTMONTHS = _getStringList("STANDALONESHORTMONTHS");
  WEEKDAYS = _getStringList("WEEKDAYS");
  STANDALONEWEEKDAYS = _getStringList("STANDALONEWEEKDAYS");
  SHORTWEEKDAYS = _getStringList("SHORTWEEKDAYS");
  STANDALONESHORTWEEKDAYS = _getStringList("STANDALONESHORTWEEKDAYS");
  NARROWWEEKDAYS = _getStringList("NARROWWEEKDAYS");
  STANDALONENARROWWEEKDAYS = _getStringList("STANDALONENARROWWEEKDAYS");
  SHORTQUARTERS = _getStringList("SHORTQUARTERS");
  QUARTERS = _getStringList("QUARTERS");
  AMPMS = _getStringList("AMPMS");
  ZERODIGIT = map["ZERODIGIT"];
  DATEFORMATS = _getStringList("DATEFORMATS");
  TIMEFORMATS = _getStringList("TIMEFORMATS");
  AVAILABLEFORMATS =
      new Map<String, String>.from(map["AVAILABLEFORMATS"] ?? {});
  FIRSTDAYOFWEEK = map["FIRSTDAYOFWEEK"];
  WEEKENDRANGE = new List<int>.from(map["WEEKENDRANGE"]);
  FIRSTWEEKCUTOFFDAY = map["FIRSTWEEKCUTOFFDAY"];
  DATETIMEFORMATS = _getStringList("DATETIMEFORMATS");
}