QuoteOrId.fromJson constructor

QuoteOrId.fromJson(
  1. Object? json
)

Implementation

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