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