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