SearchResult.fromJson constructor

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

Implementation

SearchResult.fromJson(Map<String, dynamic> json) {
  statusCode = json['statusCode'];
  if (json['results'] != null) {
    results = <Results>[];
    json['results'].forEach((v) {
      results!.add(Results.fromJson(v));
    });
  }
}