Juzs.fromJson constructor

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

Implementation

Juzs.fromJson(Map<String, dynamic> json) {
  id = json['id'];
  juzNumber = json['juz_number'];
  verseMapping = json['verse_mapping'] != null
      ? new VerseMapping.fromJson(json['verse_mapping'])
      : null;
  firstVerseId = json['first_verse_id'];
  lastVerseId = json['last_verse_id'];
  versesCount = json['verses_count'];
  firstPage = json['first-page'];
}