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