toMap property

Map<String, Object?> get toMap

Implementation

Map<String, Object?> get toMap {
  Map<String, Object?> thirdPartySharingMap = {'isEnabled': _isEnabled};
  if (_granularOptions.length > 0) {
    thirdPartySharingMap['granularOptions'] =
        _granularOptions.join('__ADJ__');
  }
  if (_partnerSharingSettings.length > 0) {
    thirdPartySharingMap['partnerSharingSettings'] =
        _partnerSharingSettings.join('__ADJ__');
  }

  return thirdPartySharingMap;
}