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