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