tpl top-level constant

String const tpl

Implementation

const tpl = """@JsonSerializable(explicitToJson: true)
class %s {
  %s

%s
  factory %s.fromJson(Map<String, dynamic> json) => _\$%sFromJson(json);

  Map<String, dynamic> toJson() => _\$%sToJson(this);
}

""";