QuoteCreateOptionsFromQuote.fromJson constructor

QuoteCreateOptionsFromQuote.fromJson(
  1. Object? json
)

Implementation

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