VersionedEntity.fromJson constructor

VersionedEntity.fromJson(
  1. Map<String, Object?> json
)

Implementation

factory VersionedEntity.fromJson(Map<String, Object?> json) {
  return VersionedEntity(
    title: json[r'title'] as String?,
    id: json[r'id'] as String?,
    body: json[r'body'] != null
        ? BodyBulk.fromJson(json[r'body']! as Map<String, Object?>)
        : null,
  );
}