factory DocumentVersion.fromJson(Map<String, Object?> json) { return DocumentVersion( id: json[r'id'] as String?, versionNumber: (json[r'versionNumber'] as num?)?.toInt(), ); }