PageVersion.fromJson constructor
Implementation
factory PageVersion.fromJson(Map<String, Object?> json) {
return PageVersion(
createdAt: DateTime.tryParse(json[r'createdAt'] as String? ?? ''),
message: json[r'message'] as String?,
number: (json[r'number'] as num?)?.toInt(),
minorEdit: json[r'minorEdit'] as bool? ?? false,
authorId: json[r'authorId'] as String?,
page: json[r'page'] != null
? VersionedEntity.fromJson(json[r'page']! as Map<String, Object?>)
: null,
);
}