Scanlation.fromJson constructor Null safety

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

Implementation

Scanlation.fromJson(Map<String, dynamic> json) {
  result = json['result'] ?? '';
  response = json['response'] ?? '';
  data = Data.fromJson(json['data']);
  limit = json['limit'] ?? 0;
  offset = json['offset'] ?? 0;
  total = json['total'] ?? 0;
}