toJson method

Map<String, dynamic> toJson()

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(),
  };
}