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