Map<String, dynamic> toJson() => { 'prefix': prefix, 'entries': entries.map((e) => e.toJson()).toList(), };