Quote.fromJson constructor

Quote.fromJson(
  1. Map<String, dynamic> json
)

Implementation

Quote.fromJson(Map<String, dynamic> json) {
  text = json['text'];
  author = json['author'];
  if (author == null) author = "Unknown Author";
}