Database.fromJson constructor
Map a new database instance from a json
map.
Implementation
factory Database.fromJson(Map<String, dynamic> json) => Database.withDefaults(
id: json['id'] ?? '',
parent: Parent.fromJson(json['parent'] ?? {}),
title: Text.fromListJson(json['title'] ?? []),
createdTime: json['created_time'] ?? '',
lastEditedTime: json['last_edited_time'] ?? '',
).addPropertiesFromJson(json['properties'] ?? {});