DateTimeLangModel.fromMap constructor

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

Implementation

factory DateTimeLangModel.fromMap(Map<String, dynamic> map) =>
    DateTimeLangModel(
      code: map["CODE"],
      justnow: map["JUSTNOW"],
      timeagosuffix: map["TIMEAGOSUFFIX"],
      months: MetaData.fromMap(map["MONTHS"]),
      shortmonths: MetaData.fromMap(map["SHORTMONTHS"]),
      weekdays: MetaData.fromMap(map["WEEKDAYS"]),
      shortweekdays: MetaData.fromMap(map["SHORTWEEKDAYS"]),
      years: map["YEARS"],
      days: map["DAYS"],
      hours: map["HOURS"],
      minutes: map["MINUTES"],
      seconds: map["SECONDS"],
      shortyears: map["SHORTYEARS"],
      shortdays: map["SHORTDAYS"],
      shorthours: map["SHORTHOURS"],
      shortminutes: map["SHORTMINUTES"],
      shortseconds: map["SHORTSECONDS"],
    );