build_runner not generating g.dart files code example
Example: build_runner not generating g.dart files
import 'package:json_annotation/json_annotation.dart';
part 'cache-item.g.dart';
@JsonSerializable()
class CacheItem {
int created;
String keywords;
String response;
CacheItem({this.response});
factory CacheItem.fromJson(Map json) => _$CacheItemFromJson(json);
Map toJson() => _$CacheItemToJson(this);
}