QuoteOrId.fromJson constructor
QuoteOrId.fromJson(
- Object? json
Implementation
factory QuoteOrId.fromJson(Object? json) {
if (json is String) {
return QuoteId(id: json);
}
return Quote.fromJson(json);
}