DocumentFormatter.fromJson constructor
DocumentFormatter.fromJson(
- Map<String, dynamic> json
)
Implementation
DocumentFormatter.fromJson(Map<String, dynamic> json) {
feature = json['feature'] ?? "";
title = json['title'];
author = json['author'];
excerpt = json['excerpt'];
iconUrl = json['icon_url'] ?? "";
iconDarkUrl = json['icon_dark_url'] ?? "";
category = json['category'];
description = json['description'];
body = json['body'] ?? "";
order = json['order'] ?? 1;
hideTableContent = json['hide_table_of_contents'];
if (json['date'] != null) date = DateTime.parse(json['date']);
}