core.Map<core.String, core.dynamic> toJson() => { if (sink != null) 'sink': sink!.toJson(), if (tag != null) 'tag': tag!, };