CustomContentVersion.fromJson constructor
Implementation
factory CustomContentVersion.fromJson(Map<String, Object?> json) {
return CustomContentVersion(
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?,
custom: json[r'custom'] != null
? VersionedEntity.fromJson(json[r'custom']! as Map<String, Object?>)
: null,
);
}