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