toJson method
Implementation
Map<String, dynamic> toJson() {
final targetAccounts = this.targetAccounts;
final unshareInterval = this.unshareInterval;
final unshareIntervalUnit = this.unshareIntervalUnit;
return {
'TargetAccounts': targetAccounts,
if (unshareInterval != null) 'UnshareInterval': unshareInterval,
if (unshareIntervalUnit != null)
'UnshareIntervalUnit': unshareIntervalUnit.toValue(),
};
}