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