toMap method

  1. @override
Map<String, String> toMap()
override

Implementation

@override
Map<String, String> toMap() => <String, String>{
      // TODO: Update min SDK from 2.12 to 2.15 in new major version to fix this deprecation warning
      // ignore: deprecated_member_use
      'accessibility': describeEnum(_accessibility),
      if (_accountName != null) 'accountName': _accountName!,
      if (_groupId != null) 'groupId': _groupId!,
      'synchronizable': '$_synchronizable',
    };