toJson method
Implementation
Map<String, dynamic> toJson() {
final name = this.name;
final server = this.server;
final serverValidationStrategy = this.serverValidationStrategy;
final userDataValidationParameters = this.userDataValidationParameters;
final validationId = this.validationId;
return {
if (name != null) 'name': name,
if (server != null) 'server': server,
if (serverValidationStrategy != null)
'serverValidationStrategy': serverValidationStrategy.toValue(),
if (userDataValidationParameters != null)
'userDataValidationParameters': userDataValidationParameters,
if (validationId != null) 'validationId': validationId,
};
}