QuotesResourceFromQuote.fromJson constructor

QuotesResourceFromQuote.fromJson(
  1. Object? json
)

Implementation

factory QuotesResourceFromQuote.fromJson(Object? json) {
  final map = (json as Map).cast<String, Object?>();
  return QuotesResourceFromQuote(
    isRevision: (map['is_revision'] as bool),
    quote: QuoteOrId.fromJson(map['quote']),
  );
}