Map<String, dynamic> toMap() { return <String, dynamic>{ 'endpoints': endpoints, 'path': path, 'readOnly': ?readOnly, }; }