Map<String, dynamic> toJson() { final failoverCriteria = this.failoverCriteria; return { if (failoverCriteria != null) 'FailoverCriteria': failoverCriteria, }; }