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