ReviewOrId.fromJson constructor
ReviewOrId.fromJson(
- Object? json
Implementation
factory ReviewOrId.fromJson(Object? json) {
if (json is String) {
return ReviewId(id: json);
}
return Review.fromJson(json);
}