fromJson static method

DateTimeFormattingTypeAbsolute? fromJson(
  1. Map<String, dynamic>? json
)
override

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,
  );
}