fromJsonList method Null safety

List<CodeSearchItem> fromJsonList(
  1. List input
)

Implementation

static List<CodeSearchItem> fromJsonList(List<dynamic> input) {
  final result = <CodeSearchItem>[];
  for (final item in input) {
    if (item is Map<String, dynamic>) {
      result.add(CodeSearchItem.fromJson(item));
    }
  }
  return result;
}