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