@@ -46,18 +46,18 @@ class SearchResult {
4646 final DateTime processedTime;
4747
4848 SearchResult ({this .resultCount = 0 , this .items = const < Item > []})
49- : successful = true ,
50- lastError = '' ,
51- lastErrorType = ErrorType .none,
52- processedTime = DateTime .now ();
49+ : successful = true ,
50+ lastError = '' ,
51+ lastErrorType = ErrorType .none,
52+ processedTime = DateTime .now ();
5353
5454 SearchResult .fromError ({
5555 this .lastError = '' ,
5656 this .lastErrorType = ErrorType .none,
57- }) : successful = false ,
58- resultCount = 0 ,
59- processedTime = DateTime .now (),
60- items = [];
57+ }) : successful = false ,
58+ resultCount = 0 ,
59+ processedTime = DateTime .now (),
60+ items = [];
6161
6262 factory SearchResult .fromJson ({
6363 required dynamic json,
@@ -75,14 +75,13 @@ class SearchResult {
7575 var dataCount = countTagMap[type];
7676
7777 /// Fetch the results from the JSON data.
78- final items =
79- json[dataStart] == null
80- ? null
81- : (json[dataStart] as List ).cast <Map <String , dynamic >>().map ((
82- Map <String , dynamic > item,
83- ) {
84- return Item .fromJson (json: item, type: type);
85- }).toList ();
78+ final items = json[dataStart] == null
79+ ? null
80+ : (json[dataStart] as List ).cast <Map <String , dynamic >>().map ((
81+ Map <String , dynamic > item,
82+ ) {
83+ return Item .fromJson (json: item, type: type);
84+ }).toList ();
8685
8786 return SearchResult (
8887 resultCount: json[dataCount] ?? 0 ,
0 commit comments