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('__ADT__');
  }
  if (_partnerSharingSettings.length > 0) {
    thirdPartySharingMap['partnerSharingSettings'] =
        _partnerSharingSettings.join('__ADT__');
  }

  return thirdPartySharingMap;
}