toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final name = this.name;
  final actions = this.actions;
  final enabled = this.enabled;
  final recipients = this.recipients;
  final scanEnabled = this.scanEnabled;
  final tlsPolicy = this.tlsPolicy;
  return {
    'Name': name,
    if (actions != null) 'Actions': actions,
    if (enabled != null) 'Enabled': enabled,
    if (recipients != null) 'Recipients': recipients,
    if (scanEnabled != null) 'ScanEnabled': scanEnabled,
    if (tlsPolicy != null) 'TlsPolicy': tlsPolicy.toValue(),
  };
}