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