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