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