fromJson static method
Inherited by: DateTimeFormattingTypeAbsolute DateTimeFormattingTypeRelative
Implementation
static DateTimeFormattingTypeAbsolute? fromJson(Map<String, dynamic>? json) {
if (json == null) {
return null;
}
return DateTimeFormattingTypeAbsolute(
timePrecision: DateTimePartPrecision.fromJson(
tdMapFromJson(json['time_precision']),
),
datePrecision: DateTimePartPrecision.fromJson(
tdMapFromJson(json['date_precision']),
),
showDayOfWeek: (json['show_day_of_week'] as bool?) ?? false,
);
}