core.Map<core.String, core.dynamic> toJson() => { if (notes != null) 'notes': notes!.map((key, item) => core.MapEntry(key, item.toJson())), };