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