DocumentVersion.fromJson constructor

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

Implementation

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